Skip to content

refactor: remove unread observability bookkeeping - #31337

Closed
XuPeng-SH wants to merge 1 commit into
mainfrom
codex/observability-unused-state-20261026
Closed

XuPeng-SH wants to merge 1 commit into
mainfrom
codex/observability-unused-state-20261026

Conversation

@XuPeng-SH

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

Refs #29249

What this PR does / why we need it:

Remove three unread pieces of observability bookkeeping: the Dragonboat adapter's duplicate package-name string, CDC's saved previous-round start timestamp, and the branch hashmap's lifetime segment-creation counter.

The registered logger still uses zap.Named(name). CDC still reports actual round durations, initial-sync state, watermarks and progress inactivity. Spill diagnostics still derive current segment counts from the bucket segment collection; append rollback, file names/formats and error cleanup remain unchanged. No test or assertion is changed.

Validation: all three owning package suites pass (595 top-level / 1,294 named tests; no failures or skips). Formatting, go vet and incremental golangci-lint pass. Molint reports two CDC checkrecover diagnostics; the frozen-main comparison confirms the same two diagnostics and zero new findings.

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@XuPeng-SH

XuPeng-SH commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor Author

mo-bot review · mo-bot-local · done

Commit: 14b98d9501e99c516cfe832d37b97e788965ace8

Review completed. Read the assessment.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mo-bot review · mo-bot-local · review

Commit: 14b98d9501e99c516cfe832d37b97e788965ace8

Assessment: approve

Reviewed the complete three-file delta and affected owners/callers. Removing unused bookkeeping is appropriate: Zap retains logger naming, CDC retains live timing/progress metrics, and spill diagnostics retain authoritative segment accounting. Rollback, cleanup and persisted formats remain unchanged. No actionable defects or substantive discussion disputes remain.

Model: gpt-6-astra / xhigh

Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1

Validation:

  • Go syntax/reference audit passed across 6,824 tracked files; affected struct literals remain keyed and removed fields have no remaining references.

  • Exact base-to-head projection, clean-source verification, formatting and diff checks passed. The delta contains only three field removals, three dead writes and alignment changes.

  • Both checks have matching command, frozen-head and exit-zero receipts, retained logs and terminal receipts, recorded in /home/xupeng/.local/state/mo-bot/jobs/70110ab29655a1b475711d6b/attempt-1/receipt-log-map.json.

  • All raw comments, reviews and discussion-index entries were reviewed. Both nonempty items are accounted for in discussion-assessment.json; closure evidence is retained in review-scope.json.

Limitations:

  • No product compilation or runtime tests were executed; focused static evidence closes this nonbehavioral cleanup. Author test claims lack retained execution artifacts, and seven frozen CI checks remain in progress.

  • Expected savings are limited to smaller bookkeeping state and fewer writes/copies; no performance improvement was measured.

  • The referenced issue #29249 body was not supplied; approval covers this cleanup, without asserting broader issue resolution.

@XuPeng-SH XuPeng-SH closed this Oct 27, 2026
XuPeng-SH added a commit that referenced this pull request Oct 27, 2026
## 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.
@XuPeng-SH
XuPeng-SH deleted the codex/observability-unused-state-20261026 branch November 1, 2026 05:02

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/refactor Code refactor size/S Denotes a PR that changes [10,99] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants