Skip to content

CDRIVER-4309: always use count command for estimatedDocumentCount #984

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 5 commits into from
May 6, 2022

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented May 5, 2022

https://jira.mongodb.org/browse/CDRIVER-4309

Related to #982, but I believe this can be merged first.

jmikola added 4 commits May 5, 2022 14:17
Synced with mongodb/specifications@021cbc8

Includes some test changes for CDRIVER-4063 and CDRIVER-4330
This requires setting MONGOC_ERROR_API_VERSION_2 on clients under test. It was previously only set on the internal client.
@vector-of-bool
Copy link
Contributor

Looks good, other than the newly failing test_estimated_document_count in test-mongoc-collection.c. Just needs to be updated for these changes.

@@ -2502,7 +2501,7 @@ test_estimated_document_count (void)
collection, tmp_bson ("{'limit': 2, 'skip': 1}"), NULL, &reply, &error);

request = mock_server_receives_msg (
server, 0, tmp_bson ("{'aggregate': 'coll', 'limit': 2, 'skip': 1}"));
server, 0, tmp_bson ("{'count': 'coll', 'limit': 2, 'skip': 1}"));
Copy link
Member Author

Choose a reason for hiding this comment

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

@vector-of-bool: Thanks for catching this.

@jmikola
Copy link
Member Author

jmikola commented May 6, 2022

Latest build shows task failures consistent with the base commit (nothing new after restarting the ASAN Ubuntu 18.04 builds), so I think we're good to merge here.

Copy link
Contributor

@vector-of-bool vector-of-bool left a comment

Choose a reason for hiding this comment

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

LGTM

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