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: b5953adbdce463b1ae92bb3cd64ec74b781ed72e
Assessment: approve
Reviewed the complete delta and lifecycle consumers. Removing the unused counter is sound: client leases, execution budgets and reuse-checker epochs remain authoritative. Cancellation, cleanup, error retention and test assertions are unchanged. The documented omission from generic debug dumps is acceptable. No actionable defects or substantive discussion disputes remain.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
Validation:
-
Syntax/reference audit passed across 6,824 tracked Go files: the counter has no remaining identifiers in mongoscan, and affected literals remain keyed or empty.
-
Exact base-to-head comparison confirmed only the field declaration and increment were removed. Clean-source, formatting and diff checks passed.
-
Both checks have matching frozen-head, command and exit-zero receipts with retained logs, recorded in /home/xupeng/.local/state/mo-bot/jobs/db676b916ab24c32a7561d67/attempt-1/receipt-log-map.json.
-
Complete raw discussion and index reviewed; both nonempty items are accounted for in discussion-assessment.json. Owner, consumer and unhappy-path analysis is retained in review-scope.json.
Limitations:
-
No product compilation or runtime tests were executed; static evidence closes this nonbehavioral cleanup. Author test claims lack retained execution artifacts, and six frozen CI checks remain in progress.
-
Expected savings are limited to smaller bookkeeping state and one fewer increment per successful Prepare; no performance improvement was measured.
-
Issue #29249's body was not supplied; approval covers this cleanup without asserting broader issue resolution.
## 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 MongoScan's unread private generation counter and its sole increment after opening a cursor. The counter never participates in a stale-result check, client lease, named diagnostic or reset decision.
Actual cursor/client-lease ownership, query contexts, execution budgets, cancellation, bounded cleanup and terminal error retention remain unchanged. All generation/reuse and failure-path test assertions are retained. Generic reuse-checker object dumps will omit this private field; the checker’s actual epochs, object identity and stack diagnostics remain intact.
Validation: the complete mongoscan package passes (21 top-level / 36 named tests; no failures or skips). Formatting, go vet, all four configured molint analyzers and incremental golangci-lint pass with no diagnostics.