Skip to content

Force unique clusterTime values by splitting insert into two commands#1356

Merged
jyemin merged 2 commits into
mongodb:masterfrom
jyemin:j5397
Apr 2, 2024
Merged

Force unique clusterTime values by splitting insert into two commands#1356
jyemin merged 2 commits into
mongodb:masterfrom
jyemin:j5397

Conversation

@jyemin

@jyemin jyemin commented Apr 1, 2024

Copy link
Copy Markdown
Collaborator

@jyemin jyemin requested a review from rozza April 1, 2024 19:16
@jyemin jyemin self-assigned this Apr 1, 2024
// write operation, and the test relies on the clusterTime values being both ascending _and_ unique.
def expectedOne = insertDocuments(helper, [1])
def expectedTwo = insertDocuments(helper, [2])
def expected = []

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sure there is a more idiomatic one liner that will do this but I didn't think it was important enough to research. :)

@katcharov katcharov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

…/ChangeStreamOperationSpecification.groovy

Co-authored-by: Maxim Katcharov <maxim.katcharov@mongodb.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants