Skip to content

RUST-1859 Sync bulk write spec tests #1106

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
merged 7 commits into from
May 17, 2024

Conversation

isabelatkinson
Copy link
Contributor

@isabelatkinson isabelatkinson commented May 16, 2024

This also pulls in some unified test conversions (RUST-1866, RUST-1863).

@@ -57,6 +57,8 @@ impl<'a> OperationWithDefaults for Insert<'a> {
const NAME: &'static str = "insert";

fn build(&mut self, description: &StreamDescription) -> Result<Command<Self::Command>> {
self.inserted_ids.clear();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Caught by a retryable writes test, we were adding duplicates here upon retry

};

if !self.query.is_empty() {
body.insert("query", self.query.clone());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

One of the new crud tests expects this field to be present even if the query is empty

@@ -40,14 +39,6 @@ impl PartialBulkWriteResult {
}
}

#[tokio::test(flavor = "multi_thread")]
async fn run_unified() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are now run in crud::run_unified

@isabelatkinson isabelatkinson requested a review from abr-egn May 16, 2024 20:36
@isabelatkinson isabelatkinson marked this pull request as ready for review May 16, 2024 20:37
@isabelatkinson isabelatkinson force-pushed the sync-bulk-write-tests branch from 643931e to de3c7c8 Compare May 17, 2024 14:39
@isabelatkinson isabelatkinson merged commit 91a91e2 into mongodb:main May 17, 2024
10 of 12 checks passed
@isabelatkinson isabelatkinson deleted the sync-bulk-write-tests branch June 28, 2024 16:07
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.

2 participants