-
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
feat(NODE-6389): add support for timeoutMS in StateMachine.execute() #4243
Conversation
Co-authored-by: Warren James <[email protected]>
Co-authored-by: Warren James <[email protected]>
test/integration/client-side-operations-timeout/client_side_operations_timeout.unit.test.ts
Outdated
Show resolved
Hide resolved
test/integration/client-side-operations-timeout/client_side_operations_timeout.unit.test.ts
Outdated
Show resolved
Hide resolved
test/integration/client-side-operations-timeout/client_side_operations_timeout.unit.test.ts
Show resolved
Hide resolved
): Promise<Array<DataKey>> { | ||
const { db: dbName, collection: collectionName } = | ||
MongoDBCollectionNamespace.fromString(keyVaultNamespace); | ||
|
||
return client | ||
.db(dbName) | ||
.collection<DataKey>(collectionName, { readConcern: { level: 'majority' } }) | ||
.find(deserialize(filter)) | ||
.find(deserialize(filter), { |
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.
Lots of red in CI caused by this - timeoutMode
can only be specified if timeoutMS is specified too. Otherwise cursors throw an error.
Also - lint is failing
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.
Yep, changed it!
…4243) Co-authored-by: Warren James <[email protected]> Co-authored-by: Neal Beeken <[email protected]> Co-authored-by: Bailey Pearson <[email protected]>
…4243) Co-authored-by: Warren James <[email protected]> Co-authored-by: Neal Beeken <[email protected]> Co-authored-by: Bailey Pearson <[email protected]>
…4243) Co-authored-by: Warren James <[email protected]> Co-authored-by: Neal Beeken <[email protected]> Co-authored-by: Bailey Pearson <[email protected]>
…4243) Co-authored-by: Warren James <[email protected]> Co-authored-by: Neal Beeken <[email protected]> Co-authored-by: Bailey Pearson <[email protected]>
…4243) Co-authored-by: Warren James <[email protected]> Co-authored-by: Neal Beeken <[email protected]> Co-authored-by: Bailey Pearson <[email protected]>
…4243) Co-authored-by: Warren James <[email protected]> Co-authored-by: Neal Beeken <[email protected]> Co-authored-by: Bailey Pearson <[email protected]>
…4243) Co-authored-by: Warren James <[email protected]> Co-authored-by: Neal Beeken <[email protected]> Co-authored-by: Bailey Pearson <[email protected]>
Description
StateMachine.execute
and commands run against amongocryptd
server respect atimeoutMS
.What is changing?
StateMachine.execute
method respectstimeoutMS
for the following operations:listCollections
mongocryptd
commands now use remaining timeoutMS is used, and maxTimeMS is not appended to the command (ServerDescription.iscryptd
field is used to determind server type)Is there new documentation needed for these changes?
No
What is the motivation for this change?
CSOT
Double check the following
npm run check:lint
scripttype(NODE-xxxx)[!]: description
feat(NODE-1234)!: rewriting everything in coffeescript