Skip to content

Revert long-scan reader cache admission change - #31943

Merged
XuPeng-SH merged 2 commits into
matrixorigin:mainfrom
XuPeng-SH:codex/issue31868-revert-scan-cache
Oct 31, 2026
Merged

XuPeng-SH merged 2 commits into
matrixorigin:mainfrom
XuPeng-SH:codex/issue31868-revert-scan-cache

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:

Fixes #31868

What this PR does / why we need it:

Revert #31767's reader cache-admission change following the reported 25.7% TPCH 1T slowdown. Restore the previous per-reader cache-write cutoff and its ordinary, delegated and sharded constructor callers, preserving later unrelated changes.

Keep immediate test cleanup and the independent FIFO working-set control. The persisted-reader regression checks the threshold transition and explicit cache-write suppression using two reads of one small block.

Validation: affected owning-package UT and race, ordinary/sharded reader consumer tests in both modes, formatting, go vet, pinned molint and incremental golangci-lint.

The reported 1T workload was not rerun locally. This rollback restores the prior admission tradeoff and may relinquish the warm-cache gains of #31767; it does not establish the precise mechanism of the reported slowdown.

Restore the previous reader cache-write cutoff after the TPCH 1T
regression reported in matrixorigin#31868.

This reverts the production and constructor changes from
ee8b206 while retaining immediate test
cleanup and the independent FIFO working-set control.
@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 31, 2026 •

Copy link
Copy Markdown
Contributor Author

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

Commit: 2ab3d4a7cdc0db887833fc82c19055e1b2029cb2

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: 2ab3d4a7cdc0db887833fc82c19055e1b2029cb2

Assessment: approve

The rollback restores the prior reader cache-write cutoff consistently across callers. No actionable findings remain.

Model: gpt-6-astra / xhigh

Session: 01a1869d-999c-7481-b340-ae4a63e8cee4 · slot 1 · generation 2

Validation:

  • Reviewed the complete delta, linked issue, both discussion entries and affected consumers; saved review-plan.md and discussion-assessment.json.

  • Verified all production changes exactly reverse #31767; reader.go matches its pre-change version byte-for-byte.

  • Full readutil and fifocache suites passed, including threshold-transition and explicit-suppression cases.

  • All 22 selected disttae consumer tests passed, including real-logtail, partition and sharded-reader cases.

  • Reconciled command/source/exit receipts and retained logs in validation-evidence.json; source remains unchanged.

Limitations:

  • TPCH 1T was not rerun; latency recovery and the slowdown’s precise mechanism remain unverified. The rollback may relinquish warm-cache gains.

  • Author-reported race and lint checks were not independently rerun; pending CI is not counted as passing.

This branch was successfully deployed

No deployments
ci — 5f6bdac8 Deployed Oct 31, 2026 by XuPeng-SH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working size/S Denotes a PR that changes [10,99] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: TPCH 1T query latency increases 25.7% after #31767

2 participants