Repository navigation
Revert long-scan reader cache admission change - #31943
Conversation
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 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: 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.
What type of PR is this?
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.