STOR-5489: Implement retry loop for actor fetch requests - #7064
Open
apeacock1991 wants to merge 5 commits into
Open
STOR-5489: Implement retry loop for actor fetch requests#7064apeacock1991 wants to merge 5 commits into
apeacock1991 wants to merge 5 commits into
Conversation
apeacock1991
force-pushed
the
apeacock/stor-5489-replay
branch
2 times, most recently
from
August 19, 2026 13:55
05599f4 to
14373e2
Compare
Merging this PR will degrade performance by 9.24%
|
| Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|
| ❌ | simpleStringBody[Response] |
22.4 µs | 24.7 µs | -9.24% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing apeacock/stor-5489-replay (0cec5a1) with main (6dd2348)
Footnotes
-
129 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
apeacock1991
force-pushed
the
apeacock/stor-5489-replay
branch
2 times, most recently
from
August 19, 2026 15:00
bd4d554 to
38a5707
Compare
apeacock1991
force-pushed
the
apeacock/stor-5489-replay
branch
4 times, most recently
from
August 20, 2026 14:22
4b9ecd6 to
0cec5a1
Compare
Move the existing actor retry metadata and factory tests into their own target. Leave body rewindability coverage isolated.
Use supportsActorFetchRetries() for the existing metadata capability so the name also covers replay behavior added separately.
Add a retry-preparation hook to actor fetch factories. Global actor stubs drop and recreate their channel while preserving routing inputs; replica stubs retain their pre-opened primary channel.
apeacock1991
force-pushed
the
apeacock/stor-5489-replay
branch
from
August 21, 2026 10:47
0cec5a1 to
e644ddb
Compare
Retry eligible Durable Object HTTP fetches with bounded jittered backoff while preserving logical-call metadata, rewinding request bodies, and honoring delivery, abort, and deadline semantics. Keep replica-to-primary stubs excluded because their pre-resolved channels cannot reroute after a disconnect.
Apply Durable Object fetch replay to disconnected WebSocket upgrade handshakes while retaining the existing successful upgrade and HTTP fallback behavior.
apeacock1991
force-pushed
the
apeacock/stor-5489-replay
branch
from
August 21, 2026 12:46
e644ddb to
3dbfcea
Compare
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.
When the enforcement gate is enabled, we now attempt to retry disconnected actor requests within the following bounds:
There's some cleanup in this PR too:
supportsActorRetryMetadatatosupportsActorFetchRetries, ultimately this is what we care about vs metadataDescoped from this PR: