-
Notifications
You must be signed in to change notification settings - Fork 3.7k
feat(collab-doc): If-Match optimistic concurrency so persist never clobbers an out-of-band edit #6085
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
waleedlatif1
merged 18 commits into
realtime-rooms
from
collab-doc-optimistic-concurrency
Jul 30, 2026
Merged
feat(collab-doc): If-Match optimistic concurrency so persist never clobbers an out-of-band edit #6085
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
eb40647
feat(collab-doc): optimistic-concurrency guard so persist never clobb…
waleedlatif1 48190bd
chore(collab-doc): heartbeat-refresh the synced-version key TTL along…
waleedlatif1 ef3f342
fix(collab-doc): stop persist-conflict retries when there is no live …
waleedlatif1 4a872ec
fix(collab-doc): close three optimistic-concurrency edge cases from r…
waleedlatif1 ee74330
fix(collab-doc): defer (not reconcile) on missing version, and use th…
waleedlatif1 952393e
fix(collab-doc): make persist If-Match teardown-race-immune and recov…
waleedlatif1 d7a41ed
fix(collab-doc): stamp cluster sync version the moment the seed wins,…
waleedlatif1 e9ced7e
fix(collab-doc): make the synced-version token monotonic at every wri…
waleedlatif1 0f7a081
fix(collab-doc): close three last-leave persist edge cases from review
waleedlatif1 cf8802f
fix(collab-doc): scope the persist If-Match to a content version so m…
waleedlatif1 ffb9ec2
chore(collab-doc): condense the densest persist comments (no behavior…
waleedlatif1 5de2f03
fix(collab-doc): persist must return the content version, not updatedAt
waleedlatif1 2652573
fix(collab-doc): defer persist whenever the version is missing; guard…
waleedlatif1 255d28d
fix(collab-doc): don't reconcile a conflict the live doc already refl…
waleedlatif1 d001aa3
fix(collab-doc): make content_updated_at monotonic per file; skip-rec…
waleedlatif1 f965bc1
refactor(collab-doc): drop the destructive in-persist reconcile; adop…
waleedlatif1 22dfc9c
fix(collab-doc): don't let a last-leave conflict retry clobber via th…
waleedlatif1 df92969
fix(collab-doc): stop (don't re-persist) on a persist conflict — clos…
waleedlatif1 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
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.