Skip to content

CDRIVER-3974 Append Versioned API options to all commands #792

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 1 commit into from
May 21, 2021

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented May 18, 2021

CDRIVER-3974

This fixes test failures in the versioned_api builds. Other builds against latest will continue to fail due batchSize calculation for getMore resulting in additional getMore calls.

@alcaeus alcaeus requested a review from kevinAlbs May 18, 2021 08:02
@alcaeus alcaeus self-assigned this May 18, 2021
@alcaeus
Copy link
Member Author

alcaeus commented May 19, 2021

I ran a build with a temporary patch for the cursor/getMore issue: https://spruce.mongodb.com/version/60a3b3f80305b944948f6b9b/tasks. No idea why debug-compile-sspi-winssl failed, but the rest of the tests is stable.

Copy link
Collaborator

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

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

LGTM!

No idea why debug-compile-sspi-winssl failed, but the rest of the tests is stable.

Unfortunately, this is a known flaky test failure, tracked in: CDRIVER-3760. I think it is unrelated to these changes.

if (parts->client->api) {
if (!is_get_more && !_txn_in_progress (parts)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice! Always appending a versioned API does help simplify this logic.

@alcaeus alcaeus merged commit fc84fec into mongodb:master May 21, 2021
@alcaeus alcaeus deleted the cdriver-3974 branch May 21, 2021 17:20
chardan pushed a commit to chardan/mongo-c-driver that referenced this pull request Aug 26, 2021
* Allow configuration of server API on a Client
* Add versioned API spec tests
* Use server_description_hello_response instead of legacy command
* Add batchSize workaround for getMore in CM spec tests
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