-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix(NODE-5745): Ignore Read/Write Concern in Atlas Search Index Helpers #4042
fix(NODE-5745): Ignore Read/Write Concern in Atlas Search Index Helpers #4042
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a feature? it doesn't modify any driver source. What about the txn unknown mentioned in the ticket? (Are txn's even relevant?)
…SearchIndexes collection helper
There's a small code change, I mistakenly marked this as Ready for Review preemptively, but it is ready for review now. I'm not sure how transactions are relevant, since we never pass wr concern into the command anyway. |
Transactions are controlled by the session, if a session is in a transaction it will apply the transaction's wc/rc settings, so how are we handling that? Do we need to handle that? |
…noresReadWriteConcern-with-transaction.json Change to more descriptive file name
fb703c6
to
59ed066
Compare
...tion/index-management/node-specific/searchIndexIgnoresReadWriteConcern-with-transaction.json
Outdated
Show resolved
Hide resolved
...tion/index-management/node-specific/searchIndexIgnoresReadWriteConcern-with-transaction.json
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this really a feat? shouldn't it be a fix?
Description
Synced tests and remove r/w concern from relevant method's
options
value.What is changing?
Added spec tests to ensure
readConcern
andwriteConcern
are not sent to command with Atlas Search Helpers.Explicitly remove
readConcern
andwriteConcern
fromCollection.listSearchIndexes
.Is there new documentation needed for these changes?
No.
What is the motivation for this change?
Spec compliance.
Release Highlight
Omit
readConcern
andwriteConcern
inCollection.listSearchIndexes
options argumentImportant
readConcern
andwriteConcern
are no longer viable keys in the options argument passed intoCollection.listSearchIndexes
This type change is a correctness fix.
Collection.listSearchIndexes
is an Atlas specific method, and Atlas' search indexes do not supportreadConcern
andwriteConcern
options. The types for this function now reflect this functionality.Double check the following
npm run check:lint
scripttype(NODE-xxxx)[!]: description
feat(NODE-1234)!: rewriting everything in coffeescript