Repository navigation
fix: stop block fetch admission after populate expiry - #240
Merged
Merged
Conversation
Signed-off-by: Perfloop Agent <[email protected]>
|
Signed-off-by: Perfloop Agent <[email protected]>
Signed-off-by: Perfloop Agent <[email protected]>
Signed-off-by: Perfloop Agent <[email protected]>
perfloop
Bot
force-pushed
the
perfloop-pr-open-v1ntp4ekze
branch
from
October 1, 2026 21:30
9e48dbe to
a92e7d6
Compare
ovaistariq
approved these changes
Oct 21, 2026
|
🎉 This PR is included in version 1.22.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
fetchBlocksToCachenow returns immediately for empty input, checks the parent context before each errgroup submission and again when a task starts, and returns the context error after draining when cancellation stops admission, unless a stale result was collected.fetchOneBlockalso rechecks the context underblockFetchMubefore creating a new state; active same-key states still coalesce, and states admitted before cancellation remain detached.The 32-block test synchronizes four upstream GET starts, snapshots state, probes, GETs, and populate permits, then cancels the parent and verifies the four detached writes finish after the batch returns. A second test pauses a task after its entry check and cancels before state admission; the stale-ETag test continues to verify invalidation priority. The tests use controlled cancellation after the first wave rather than a short wall-clock deadline. The production five-minute timeout is unchanged; timeout frequency and aggregate production cost remain unknown.
The 32-block assertion is violated at
0464aad5ab5cd78a97b6e6ed8cba7b194f4f6137and satisfied at the final revision; run it withsh proof/check-fetch-block-deadline.sh. The task-check/lock-window assertion is violated atf5ab43a10570bb64faceb3e1c007e766c0f8f0e6and satisfied at the final revision; run it withsh proof/check-fetch-block-admission-race.sh.Recorded proof ran with retained support that is not included in this pull request.
Passed checks:
make test,make lint-ci,make test-race,make test-integration, andmake test-coverage. The local block-mode S3 compatibility check was not run because Tigris credentials were not configured. Target CI also runs S3 Compatibility Tests / s3-compat-tests (default and tiered) and S3 Compatibility Tests (Cluster) / s3-compat-tests-cluster (default).Generated by Perfloop. Measurements and checks. Reproduce this comparison (tenant access required).