-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix(run-engine): retry getSnapshotsSince on the replica then primary when the read replica lags #3889
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+1,005
−26
Merged
fix(run-engine): retry getSnapshotsSince on the replica then primary when the read replica lags #3889
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
79dd2da
feat(testcontainers): schemaOnlyPrisma fixture - empty template clone…
d-cs d44f4f3
test(run-engine): cover getSnapshotsSince replica-miss fallback (red)
d-cs 516533c
test(run-engine): tie-proof replica fallback window assertion, drop r…
d-cs ade8c55
feat(run-engine): typed ExecutionSnapshotNotFoundError from getExecut…
d-cs 73d5c55
feat(run-engine): retry getSnapshotsSince on the primary when the rep…
d-cs d680da8
fix(run-engine): only count replica misses the primary can serve; ski…
d-cs 6651568
chore: server-changes note for snapshots-since replica fallback
d-cs a868b3a
test(run-engine): cover replica-read, stale-tail, flag-off, tx bypass…
d-cs 9737060
fix(run-engine): mark replica-retry failures in logs, narrow release …
d-cs a5d59a1
test(run-engine): getSnapshotsSince must reject a since snapshot from…
d-cs 1c128bd
fix(run-engine): scope getSnapshotsSince anchor lookup to the polled run
d-cs 4f98828
chore(run-engine): trim assertion-echo comments, tighten fallback com…
d-cs 01675a8
test(run-engine): replica catches up during jittered retry window (red)
d-cs b4625be
feat(run-engine): jittered replica retry before primary fallback in g…
d-cs 6673a94
chore(run-engine): harden retry-window test against cold connects, di…
d-cs 1157227
chore: unwrap server-changes notes to one line per paragraph
d-cs f4dac20
fix(run-engine,testcontainers): address review - normalize retry boun…
d-cs f26b646
docs(run-engine): document maxMs <= 0 (not just 0) as disabling the r…
d-cs 51924bb
chore: combine the two snapshots-since server-changes notes into one …
d-cs 3a5e88b
docs(run-engine): clarify that only not-found replica errors trigger …
d-cs 8418c7b
chore: retrigger CI
d-cs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| area: webapp | ||
| type: improvement | ||
| --- | ||
|
|
||
| Run snapshot polling no longer errors or pays extra latency when the database read replica hasn't yet replicated the snapshot the runner is polling from (`RUN_ENGINE_READ_REPLICA_SNAPSHOTS_SINCE_ENABLED`): the read is briefly retried on the replica and served from the primary if it still hasn't caught up. Polling also now rejects a since-snapshot id that doesn't belong to the run being polled. |
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.