DRIVERS-3274 Send afterClusterTime on writes in causally-consistent sessions.#1930
Open
matthewdale wants to merge 4 commits intomongodb:masterfrom
Open
DRIVERS-3274 Send afterClusterTime on writes in causally-consistent sessions.#1930matthewdale wants to merge 4 commits intomongodb:masterfrom
matthewdale wants to merge 4 commits intomongodb:masterfrom
Conversation
sanych-sun
reviewed
May 4, 2026
| `operationTime` in the `ClientSession` whether the operation succeeded or not. | ||
| 2. Passing that `operationTime` in the `afterClusterTime` field of the `readConcern` field for subsequent causally | ||
| consistent read operations (for all commands that support a `readConcern`) | ||
| consistent read and write operations (for all commands that support a `readConcern`) |
Member
There was a problem hiding this comment.
Should we specify list of commands here to avoid any confusion?
Contributor
Author
There was a problem hiding this comment.
Yes, I'll update the list in "Read Write Concern", which "Causal Consistency" links to.
…kWrite to the description of write commands.
Contributor
|
@sanych-sun Could you link the C# implementation draft / CI for tests? |
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.
DRIVERS-3274
Updates the Causal Consistency spec to require that
afterClusterTimeis sent on write commands (insert,update,delete,findAndModify,bulkWrite) in causally-consistent sessions. Previously,afterClusterTimewas only sent on read commands. It updates the spec prose, adds two new unified test files, and updates the Read Write Concern spec to list write commands that acceptreadConcern.Please complete the following before merging:
clusters).