Skip to content

refactor(fulltext): remove unread search bookkeeping - #31335

Closed
XuPeng-SH wants to merge 1 commit into
mainfrom
codex/fulltext-unused-bookkeeping-20261026
Closed

XuPeng-SH wants to merge 1 commit into
mainfrom
codex/fulltext-unused-bookkeeping-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 pieces of unread fulltext bookkeeping:

  • Classic search's idx2word map is created empty on reset and never populated or read.
  • Classic search's nrows is reset and incremented but never consumed. Keep the actual output LIMIT counter and all score/document state unchanged.
  • The fulltext2 tail builder's delSeq is only incremented. Keep the live segment/spool sequences, chronological frames and persisted chunk IDs unchanged.

No test files, interfaces, plugin registrations, parser behavior, frame formats, cleanup paths or dependency metadata change.

Validation (Go 1.27.1, controlled native wrapper):

  • Full classic search and fulltext2 suites: 366 top-level tests / 619 named cases pass, no skips.
  • Two real ISCP writer/consumer tests and three plugin hook/registration tests pass.
  • Incremental gofmt, vet and configured golangci-lint pass for both owners and the ISCP consumer. Pinned molint reports four existing checkrecover diagnostics matching the exact frozen baseline, with zero new diagnostics.
  • Whole-tracked ownership audit parses 6,824 Go files without errors. Exact source comparison proves only the three dead fields and their sole-use statements were removed.

@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: 1e51b2d409f602ca670d71897bced51afe3ffb64

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: 1e51b2d409f602ca670d71897bced51afe3ffb64

Assessment: approve

The complete two-file change removes genuinely unread bookkeeping. Live LIMIT/scoring state, frame ordering, persisted chunk IDs and cleanup ownership remain unchanged. Removing these fields is a coherent simplification; no actionable findings remain.

Model: gpt-6-astra / xhigh

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

Validation:

  • Exact base/head comparison confirms only the three dead fields and their sole-use statements were removed. The removed RowCount call is side-effect-free.

  • Standalone AST audit parsed all 6,824 tracked Go files and verified 24 relevant struct literals are keyed or empty. Receipt checks/1793053279101557440-3.json matches field-audit-standalone.log and the clean assigned head.

  • Source/discussion audit passed: checks/1793053360127472490-5.json matches review-audit.log. Both discussion items are informational and accounted for in discussion-assessment.json. Artifacts reside under /home/xupeng/.local/state/mo-bot/jobs/c944dd19ef88019a22f1d55d/attempt-1.

  • Traced classic search and ISCP tail-builder callers, live counters, persistence and cleanup paths; inspected retained behavioral tests.

Limitations:

  • No product tests or benchmarks were run. Approval rests on verified behavior-preserving removal. Author test claims lack supplied execution artifacts, and six CI checks were still running in the frozen snapshot.

  • The initial AST-tool invocation hit the repository toolchain requirement before execution; the standalone standard-library audit subsequently passed. This was not a product-test failure.

  • The cleanup removes unused state and operations; no measured throughput gain is claimed. The linked issue body was not supplied, so approval covers the stated three-field cleanup.

@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/fulltext-unused-bookkeeping-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/XS Denotes a PR that changes [1, 9] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants