Skip to content
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

CXX-2785 use read concern majority in test #1069

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

kevinAlbs
Copy link
Collaborator

Summary

This is a follow-up to #1055 to use majority read concern instead of local.

Background & Motivation

The test expects that applying a read concern to the command results in an error from Atlas. It was discovered in the specification PR (mongodb/specifications#1474 (comment)) that local is accepted for the aggregate with $listSearchIndexes. To avoid a false positive test, the test now uses read concern majority. If the driver incorrectly applies the read concern, Atlas returns the error: $listSearchIndexes cannot run with a readConcern other than 'local'. Current readConcern: majority.

read concern local is accepted for aggregate with $listSearchIndexes. To avoid a false positive test, use read concern majority. If the read concern is incorrectly applied to the command, Atlas will return an error.
@kevinAlbs kevinAlbs marked this pull request as ready for review December 12, 2023 18:26
@kevinAlbs kevinAlbs merged commit 198894a into mongodb:master Dec 12, 2023
68 of 71 checks passed
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