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 4.2-dev head d52078a. No blocking findings. The overlap predicate excludes checkpoint-index rows ending before the requested lower bound while preserving inclusive endpoint, invalid-range, and upper-bound behavior. CheckChanged, checkpoint fallback, and serialized formats remain unchanged. Reviewed all changed hunks and the index-to-handler closure. Reused focused regression evidence and successful exact-head Linux UT, SCA, build, coverage, and distributed BVT checks. This is a targeted bug-fix backport; no separate design gate.
What type of PR is this?
Which issue(s) this PR fixes:
issue #29339
What this PR does / why we need it:
Backport of #29337 to
4.2-dev.CollectChangedcurrently compares the checkpoint index row'sendwithstartinstead of the requested lower boundfrom. 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.CheckChangedbehavior 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.