Repository navigation
refactor(tae): remove abandoned sharded map and dependency - #31324
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: c0d7f27e10d5aa65029f53da334312e256552602
Assessment: request_changes
The unused-map deletion is sound, but dependency cleanup is incomplete. Preserving the Iceberg adapter metadata causes a reproducible tidy-gate failure because it depends on the local root module. The complete three-file delta and affected dependency boundaries were reviewed.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1586-7a01-9000-d45e20995cf8 · slot 1 · generation 1
- P2
go.mod:39: Removing the root maphash requirement and its sole import leaves the Iceberg adapter's indirect requirement and checksums stale. The adapter replaces MatrixOne with the local root module.
Impact: The required adapter tidy check fails. Run go mod tidy in pkg/iceberg/adapter/iceberggo and include the resulting go.mod/go.sum cleanup.
Evidence: Go 1.27.1 adapter tidy exits 1 on the candidate, requesting exactly the maphash requirement and two checksum deletions; the same command exits 0 at the verified merge base. See adapter-tidy.diff and receipts indexed in validation-audit.json. The gate is defined at .github/workflows/iceberg-connector.yml:45–47; the local replacement is at pkg/iceberg/adapter/iceberggo/go.mod:191.
Validation:
-
Receipts and logs reconciled in /home/xupeng/.local/state/mo-bot/jobs/742ad09e5f92a0a8611b62c2/attempt-1/validation-audit.json. Source remains unchanged.
-
Alias-aware audit parsed all 6,820 tracked Go files, including tests and build-tagged files: 188 TAE common importers, zero removed-symbol or maphash references. StageCache uses a separate implementation.
-
Root tidy passed and its module graph excludes maphash. Nested adapter tidy failed only on the candidate; 12,457 exported base blobs were verified against Git objects.
-
Both frozen discussion items are informational and accounted for in discussion-assessment.json.
-
No reachable SQL execution path changes; no runtime performance improvement is claimed.
Limitations:
-
No native UT/race rerun was needed to establish this metadata failure. Author-reported test results were not counted as independently executed checks.
-
The linked issue #29249 body was absent from frozen evidence.
|
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: ac6e93f9f4704494eab489285d0949496ff3e5b5
Assessment: approve
Reviewed the complete five-file delta. Deleting the unused sharded Map and pruning its dependency from both modules is coherent; live transaction and StageCache ownership remains unchanged. No reachable runtime behavior changes or actionable defects remain. The earlier adapter-metadata finding is resolved by the current cleanup and independently passing tidy checks.
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: no removed-map consumers remain. Initialization and live-owner paths were inspected.
-
Go 1.27.1 go mod tidy -diff passed for both root and Iceberg adapter modules with empty diffs. Both module graphs exclude github.com/dolthub/maphash.
-
All 35 common-package tests/subtests passed without failures or skips. Configured go vet passed for common and RPC.
-
Isolation preflight and current-input native provenance verification passed. The initial vet invocation lacked native header flags; its diagnostic was retained and superseded by the successful configured run.
-
Commands, source fingerprints, logs and receipts are reconciled in /home/xupeng/.local/state/mo-bot/jobs/183a8a3bf960e90ab1dc9bac/attempt-1/validation-assessment.json. All four discussion keys are accounted for in discussion-assessment.json; design and coverage analysis is retained in review-notes.json.
Limitations:
-
Frozen CI remains pending and is not counted as passing. Author-reported race and configured-linter results were not independently receipt-verified.
-
No live SQL/cluster tests or benchmarks were run: the retired code has no reachable consumers, and no runtime performance gain is claimed.
-
The broader cleanup issue #29249 text is absent from frozen evidence; approval covers this PR’s bounded 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 TAE common's abandoned sharded Map and its sole root-module dependency, github.com/dolthub/maphash. The RPC txnCtxs cache that consumed it was removed in #22751. An alias-aware audit of all tracked Go source, including tests and build-tagged files, finds no remaining constructor/type consumers outside the deleted file. The map and dependency have no initialization or registration side effects.
Remove 109 lines across five files, without a replacement abstraction or test changes. Preserve the live StageCache threadsafe map. Prune the now-unused maphash requirement and checksums in both the root module and the nested Iceberg adapter module.
Validation on Go 1.27.1: full common normal and race suites pass (35 tests/subtests in each mode, no failures or skips). The former RPC owner test package compiles (
-run=^$, compilation only). Incremental go vet, pinned molint and configured golangci-lint pass for common/RPC with zero lint issues. Exact Go 1.27.1 root and nested adapter go mod tidy -diff checks pass; neither module graph contains maphash. This is one bounded continuation of the ongoing cleanup task.