Repository navigation
ReaderExecutor: coordinate cleanup, run-anchored reach, serve-to-bound long connections - #111088
Merged
Merged
Conversation
…ersion Return a `Segment` (object plus its file offset) from `OffsetMap::findObjectAt` instead of a `StoredObject*` plus a `size_t*` out-param, and rename `Segment::logical_offset` to `file_offset` -- it was always a physical file offset, so the old name collided with the executor's "logical" (payload) vocabulary. Route the executor's physical<->logical conversions through two helpers, `toPhys` and `toLogical`, instead of scattered inline `+/- data_start_offset`. No behavior change.
…prediction Re-port ReadContinuityTracker: the reach estimator now predicts an ABSOLUTE run-anchored end (predictedEnd) instead of a forward length from the caller's offset (predictedForwardLength). Anchoring at the run rather than the cursor avoids re-anchoring the prediction forward as the cursor advances -- which inflated it at ~twice the consumption rate; the predicted end is now identical wherever a caller asks from. Includes the continuation-checkpoint fold and the live-run blend fix. Adapt the executor: clampReach bounds the absolute predicted end to [position, file end]; shouldOpenLongConnection and the held-GET bound use predictedEnd. Re-port the tracker gtest for the new API.
…t windows) Replace the all-or-nothing `canContinue` with `canServeAt`: a window that crosses the held connection's bound is served short (up to `read_until`) instead of being rejected -- rejecting previously dropped the connection, drained the residual, and re-read it, so a cold sequential scan over-read at every bound. `readNextWindow` now treats a short window (`got < want`) as normal (advance by `got`, re-call; EOF only at `got == 0`, where a known-size source ending early is truncation). Pairs with the run-anchored reach.
Contributor
|
Workflow [PR], commit [498a995] Summary: ❌
AI ReviewSummaryThis PR refactors Findings❌ Blockers
Final Verdict
|
The member tracks the ranges we fetch to predict the held connection's reach; `fetch_tracker` names that intent. Pure rename, no behavior change.
Cut the doc-comments on the coordinate/OffsetMap/long-connection changes down to terse non-obvious notes. No code change.
CheSema
marked this pull request as ready for review
July 20, 2026 15:14
Cut the verbose narration on `predictedEnd`, `checkpointRun`, the exact-continuation checkpoint, and the class doc down to terse non-obvious notes. No code change.
kssenii
approved these changes
Jul 20, 2026
Spell it out so it reads symmetrically with `toLogical` (review suggestion).
CheSema
enabled auto-merge
July 21, 2026 10:50
Contributor
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 223/228 (97.81%) · Uncovered code |
CheSema
added a commit
that referenced
this pull request
Jul 23, 2026
The #111088 extract added an `UnknownSize` test against its `findObjectAt` API; the merge kept this branch's `map` API, so the coverage is re-expressed against it. Related: #111088 Co-Authored-By: Claude Opus 4.8 <[email protected]>
1 task
zeekay
pushed a commit
to hanzoai/datastore
that referenced
this pull request
Sep 11, 2026
…coord-longconn ReaderExecutor: coordinate cleanup, run-anchored reach, serve-to-bound long connections
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cache-independent refactors split out of the
ReaderExecutorcache-chain PR (#110029) so they canbe reviewed and merged on their own. All are behind the experimental
use_reader_executorpath(off by default); no user-facing behavior change.
findObjectAtreturns aSegment(object + file offset) instead of aStoredObject*plus a
size_t*out-param;Segment::logical_offsetrenamed tofile_offset(it was always aphysical file offset).
toPhys/toLogicalinstead of scattered inline
+/- data_start_offset.predictedEnd) for the held source connection.canServeAt) instead ofdropping the connection and draining+re-reading the residual, which over-read on a cold scan.
Verified: the
ReaderExecutor/OffsetMap/ReadContinuityTracker/PipelineReadBuffergtestsand the
0431x/0434x/0450xexecutor functional tests.Related: #110029
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Documentation entry for user-facing changes