Repository navigation
refactor(tae): retire unused MVCC chain helpers and factory state - #31323
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: 15a3637b074dde59e69df82f4fc1725dd1e8a626
Assessment: approve
Reviewed all six changed files and affected callers. The removal is coherent: the six methods have no live consumers, the factory field is unread, and all six removed arguments are side-effect-free closures. AST comparison confirms that surviving logic is unchanged. Visibility, conflict handling, commit/rollback, replay, serialization and decoding factories retain their existing owners. No additional runtime work or performance regression path was identified. Existing tests remain intact; new BVT or benchmarks are unnecessary for this bounded cleanup. Both discussion items are informational.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
Validation:
-
Evidence is retained under /home/xupeng/.local/state/mo-bot/jobs/66b6c085d754f8f926e77ce3/attempt-1; validation-assessment.json correlates commands, source fingerprints, exit receipts and logs.
-
Repository-wide reference audit and normalized AST comparison passed, including tagged sources, constructor arguments and unchanged persistence/replay owners: reference-audit.log and retirement-audit.log.
-
Isolation preflight and current-revision native build/provenance verification passed: preflight.log and native-build.log.
-
Full txnbase/catalog suites passed 180 tests/subtests; four txnimpl transaction/replay consumer tests passed. Receipts: checks/1793043578631828598-13.json and checks/1793043624675408647-12.json.
-
go vet passed all three packages: checks/1793043625677087184-12.json. Final audit verified formatting, clean frozen source and receipt/log consistency: checks/1793043699484245156-4.json.
-
discussion-assessment.json covers both nonempty discussion entries exactly once.
Limitations:
-
Frozen CI build, unit-test, static-analysis and coverage jobs were pending; they were not counted as passing evidence.
-
Author-reported race, configured-lint and full main-build results lack retained receipts in local_validation. Those modes were not independently rerun; unchanged runtime/concurrency logic and the completed checks support this bounded removal.
## What type of PR is this? - [ ] API-change - [ ] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [x] Code Refactoring ## Which issue(s) this PR fixes: Refs #29249 ## What this PR does / why we need it: Remove unused helpers, duplicate bookkeeping and transient state whose consumers have already been retired. This consolidates the 19 closed cleanup PRs into one reviewable change on current main; each affected file matches its original published PR, with no additional cleanup. The cleanup covers TAE task/logstore/merge/RPC helpers, HAKeeper replica views, obsolete ETL writer and path state, batch/vector constructors, RPC client bookkeeping, metrics/CDC/fulltext state, MongoScan, message receivers, fixture helpers and interactive viewport state. Retained execution, ownership, cancellation, parser/error, replay, plugin registration and MySQL driver registration paths remain intact. Supersedes #31325, #31327, #31329, #31331, #31332, #31333, #31334, #31335, #31336, #31337, #31339, #31340, #31341, #31342, #31343, #31344, #31345, #31346 and #31347. Already merged #31323/#31324 and Python SDK #31322 are excluded. Validation on the combined change: all 30 changed owning packages built; 28 ran tests, with 2,066 top-level / 4,580 named cases passing and two existing external-data ETL tests skipped. The two support packages have no tests. Existing component-level race, before/after probes and consumer checks were reviewed for reuse. Formatting, go vet and incremental golangci-lint passed; forced all-four-analyzer molint reported six findings already reproduced at the baseline, with no new findings. These are local focused checks, not a full CI or GPU run.
What type of PR is this?
Which issue(s) this PR fixes:
Refs #29249
What this PR does / why we need it:
Remove six unconsumed MVCC helper methods and the unread node-factory field/argument chain through catalog constructors. Repository-wide reference, interface, registration and tagged-source checks establish that the removed methods have no live consumers; all six removed factory arguments are pure closures that were never invoked.
Preserve existing visibility, conflict, commit/rollback, replay-search and node encoding owners. Keep reserved replay/checkpoint paths and MVCCSlice. No tests are removed. Production diff: 5 files, 99 net lines removed; maintained design included.
Validation on Go 1.27.1 with native dependencies built in this worktree: full txnbase/catalog suites pass in normal mode (180 tests/subtests) and race mode (177; three existing !race allocation tests are excluded). go vet, pinned molint and configured golangci-lint pass for txnbase/catalog/txnimpl (0 lint issues). CPU main build (
make -j8 build, Go build parallelism 2) passes.Design: MVCC chain retirement at the reviewed revision.