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? |
|
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: f98492fc0bf83818d21ac6fc24e798229dfc0bef
Assessment: approve
Reviewed the complete three-file delta and surrounding callers. Removing the unused stateMachine wrapper, its Closable interface and write-only Loop counters is coherent: existing queue owners retain lifecycle responsibility, with batching, callbacks, cancellation and shutdown unchanged. No replacement mechanisms or runtime costs are introduced. No actionable defects remain. Both frozen discussion items are informational; no substantive disputes require reconciliation.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
Validation:
-
Alias-aware audit covered 6,820 tracked Go files, including tests and tagged sources, and found no consumers of the removed wrapper/interface. AST comparison confirmed surviving code differs only by the declared deletions.
-
All seven sm tests passed normally and with race detection. Three production-driver tests using mock backends passed, covering worker handoff, close deadlines and failure completion; no failures or skips.
-
go vet passed for sm, logservicedriver, txnbase and checkpoint. Formatting, patch consistency and clean-source checks passed.
-
Isolation preflight passed. Native prerequisites were qualified against current build inputs through the repository provenance verifier. Commands, clean-head receipts and retained logs were reconciled in /home/xupeng/.local/state/mo-bot/jobs/e4ba7024ec99290f12c07b1c/attempt-1/validation-assessment.json; final audit receipt: checks/1793044642673630279-5.json.
-
Complete discussion coverage is saved in discussion-assessment.json; design, ownership, compatibility, performance and test-quality analysis is saved in review-notes.json in the same diagnostic directory.
Limitations:
-
Frozen CI remains pending and is not counted as passing. Author-reported configured linter results were not independently verified.
-
No full SQL/live-cluster run or benchmark was performed. Source analysis establishes removal of unused stores, not a measured performance gain.
-
The broader cleanup issue #29249 is referenced but its text is absent from frozen evidence; this approval covers this PR's bounded retirement scope.
## 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 the disconnected logstore stateMachine queue wrapper and its sole-consumer Closable interface. The old checkpoint driver was removed in #5918, and transaction preparation moved to directly owned queues in #22475. An alias-aware audit of all tracked Go source, including tests and tagged files, confirms there is no remaining constructor/type consumer.
Also remove Loop's two write-only counters and their increments. All actual Loop instance paths have no reader, diagnostic exporter, formatting or serialization consumer for those fields. Preserve live ClosedState/Queue/ContextQueue, queue callbacks, batching, cancellation, shutdown and reserved checkpoint/replay paths. No tests are added or removed; the three-file diff removes 75 lines without replacement mechanisms.
Validation on Go 1.27.1: full sm normal and race suites pass (7 tests in each mode), as do three existing mock-backend driver tests for commit-worker handoff and close-deadline behavior. No failures or skips. Incremental gofmt, go vet, pinned molint and configured golangci-lint pass for sm, logservicedriver, txnbase and checkpoint (zero lint issues).