Repository navigation
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Reviewed exact head 168b630 against main merge-base d7d940e. No blocking findings. Verified inclusive collection-window overlap, historical/future/invalid range handling, checkpoint coverage fallback, and unchanged CheckChanged behavior. The focused helper and handler-path regressions plus successful exact-head CI run 35987506232 support approval.
|
@Mergifyio refresh |
✅ Pull request refreshed |
Merge Queue Status
This pull request spent 2 minutes 50 seconds in the queue, with no time running CI. ReasonHintYou should update or rebase your pull request manually. If you do, this pull request will automatically be requeued once the queue conditions match again. Tick the box to put this pull request back in the merge queue (same as
|
## What type of PR is this? - [x] BUG ## Which issue(s) this PR fixes: issue #29339 ## What this PR does / why we need it: Backport of #29337 to `4.2-dev`. `CollectChanged` currently compares the checkpoint index row's `end` with `start` instead of the requested lower bound `from`. Valid historical rows therefore remain in every collection result and can repeatedly schedule old table IDs for statistics recalculation. Filter index ranges by overlap with `[from, to]`, preserving the existing invalid-range and upper-bound behavior. Add regression cases for historical, overlapping, boundary, future, and invalid ranges, plus a handler-level test that exercises the checkpoint index path. `CheckChanged` behavior is unchanged. Validation on `4.2-dev`: `make cgo NATIVE_BUILD_JOBS=8`; `mo-cgo-test -count=1 -coverprofile=/tmp/matrixone-changed-table-window-4.2.cover -run '^(TestTableIDRangeIntersectsWindow|TestHandleGetChangedTableListCollectChangedUsesIndexWindow|TestTryGetChangedListFromTableIDBatchReadsCompleteIndex)$' ./pkg/vm/engine/tae/rpc`; handler test also passed with `-count=10`; `git diff --check`.
What type of PR is this?
Which issue(s) this PR fixes:
issue #29339
What this PR does / why we need it:
CollectChangedscans the checkpoint table-ID index to find tables changed within a requested time window. Its existing lower-bound check comparesendwithstartinstead offrom, so valid historical index rows are never excluded. This can repeatedly schedule old table IDs for statistics recalculation.Filter index ranges by overlap with
[from, to], while preserving the existing invalid-range and upper-bound behavior. Add regression cases for historical, overlapping, boundary, future, and invalid ranges, plus a handler-level test that exercises the checkpoint index path.CheckChangedbehavior is unchanged.Validation:
make cgo NATIVE_BUILD_JOBS=8;mo-cgo-test -count=1 -coverprofile=/tmp/matrixone-changed-table-window-main.cover -run '^(TestTableIDRangeIntersectsWindow|TestHandleGetChangedTableListCollectChangedUsesIndexWindow|TestTryGetChangedListFromTableIDBatchReadsCompleteIndex)$' ./pkg/vm/engine/tae/rpc;git diff --check.