Repository navigation
Reduce cancelled keepalive work and honor GC Bloom sizing - #30962
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? |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: ee5cfe1e62f4223c068b49a82423ac33396ce645
Assessment: approve
Reviewed the complete 10-file delta and affected owners/callers; no actionable findings remain. Cancellation handling preserves authoritative stale-bind fencing, and centralizing Bloom defaults removes duplicated policy while honoring configuration. Production defaults and explicit fixture overrides remain intact.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
Validation:
-
Verified clean frozen source, patch identity, formatting, native input provenance and library hashes. Owning-package go vet passed.
-
Full lockservice, GC and testutils/config packages passed normally and under race detection. Backup and storage/checkpoint/restart consumer packages passed under race detection.
-
Three focused regression tests each passed 100 race-enabled repetitions. Restoring the base keeper implementation reproduced the expected failure: 192 unnecessary allocator calls versus zero on the candidate.
-
Embedded validation covered all 143 listed root tests: 141 passed and two existing tests skipped. The initial run reached its five-minute package timeout; all 41 unfinished roots subsequently passed, including the changed fixture assertion. This was not a single uninterrupted package pass.
-
Constructor allocation probe measured 47,295,680 B/op with previous hardcoded settings, 1,760,442 and 3,767,482 B/op with fixture settings, unchanged allocation for production defaults, and zero allocation for cancellation before acquisition.
-
Reconciled 14 command/source/exit receipts with retained logs. Evidence mapping: /home/xupeng/.local/state/mo-bot/jobs/e22aca3d16b3eb78e098f6eb/attempt-1/validation-report.json; design and coverage map: review-scope.json in the same directory.
Limitations:
-
Frozen CI was pending and supplied no reusable local validation artifacts. No full-repository BVT or race-suite pass is claimed.
-
Existing skips remain: external-MySQL CDC integration, TestRestartCN and storage TestUpdate. Other relevant restart, GC and consumer tests passed.
-
Allocation measurements cover filter construction, not whole-checkpoint peak memory or full-CI savings. Underestimated Bloom capacity can increase conservative GC retention.
ee5cfe1 to
b903fae
Compare
XuPeng-SH
left a comment
There was a problem hiding this comment.
Incremental review of b903fae70c7590739d34b9ecb78f0594e61486dc: this commit moves the existing resource-specific SQL cleanup deadline policy into pkg/tests/testutils and reuses it from the SQL integration fixture and issue #29399 cleanup. The lexical handling (strings.Fields plus case-insensitive DROP ACCOUNT) preserves the prior 2-minute account / 30-second other-statement behavior; the existing synctest cases exercise mixed case/whitespace, timeout, and continuation to subsequent cleanup. I found no new defect in this extraction. I have not rerun these tests on this head in the current workspace; the PR description says post-rebase focused validation is still running, and the only workflow run currently visible is unrelated Iceberg Connector E2E. This is a comment-only review because this is the PR author's own change.
XuPeng-SH
left a comment
There was a problem hiding this comment.
Incremental review of d0f726da83c687c2e1ffb8d9089b2661b885f01f: the new readiness gate checks every catalog ID's current cached route and separately resolves the captured remote binds, while keeping the mo_feature_registry route cold until the public DROP. I found one test-coverage gap: require.NotEmpty(cachedCatalogBinds) proves only that at least one remote catalog route was captured. Since the two departing CNs are retired afterward and both eventual loops iterate only the captured set, the test can pass without exercising a cached route owned by each departing CN. Please assert the captured bind set includes both non-survivor service IDs (and, if necessary, arrange/warm a catalog route for each) so this regression cannot silently collapse to a single-owner check.
Static review only; I did not execute MatrixOne tests in this workspace. PR description reports six passing three-CN scenario repetitions and 20 repetitions of component tests, but those are author-reported. At this head, GitHub checks remain in progress for CI preflight, Analyze (go), and Analyze (c-cpp); other completed checks include successful Java/Kotlin, JavaScript/TypeScript, Python, Actions analysis and Iceberg module tidy, while CodeQL/Mergify are neutral and Iceberg E2E is skipped. This is comment-only because the PR author is the contributor.
What type of PR is this?
Which issue(s) this PR fixes:
Related issue #29249 (ongoing engineering quality and test deduplication task; this PR does not close it).
What this PR does / why we need it:
Reduce unnecessary work and memory in existing lockservice and GC paths, without removing test scenarios, weakening assertions, or splitting CI across runners.
Changes and responsibility
These Bloom filters are ephemeral. This does not change persisted data, checkpoint formats, or wire protocols. An estimate affects false positives and possible extra GC retention, not membership false negatives. Large-data/capacity fixtures can explicitly choose their estimate.
Evidence and limitations
Overall CI optimization status
This is a bounded resource/correctness improvement toward the larger CI goal. It does not establish a ten-minute full-CI saving. Scheduling experiments were deliberately excluded: local overlap/pooling reduced elapsed time but increased CPU and peak memory. No scheduling changes or cache-import configuration changes are included.
Follow-up fixes and measured reduction
Rejected higher-CPU/higher-memory worker-pooling and recovery-splitting experiments are excluded. No scheduler configuration changes are included.
Post-rebase whole-package racing also passed: lockservice 60.462s, transaction client 10.484s, GC v3 3.021s.
Scale-down regression readiness (final follow-up)