node-mongodb-native icon indicating copy to clipboard operation
node-mongodb-native copied to clipboard

feat(NODE-6389): add support for timeoutMS in StateMachine.execute()

Open aditi-khare-mongoDB opened this issue 1 year ago • 0 comments

Description

StateMachine.execute and commands run against a mongocryptd server respect a timeoutMS.

What is changing?

  • StateMachine.execute method respects timeoutMS for the following operations:
    • listCollections
    • Fetching data keys
    • KMS requests
  • Implemented spec unit test relating to 'remaining timeoutMS value should apply to commands sent to KMS requests.'
  • 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)
  • Implemented Prose Test #2 from CSOT spec
Is there new documentation needed for these changes?

No

What is the motivation for this change?

CSOT

Release Highlight

Double check the following

  • [ ] Ran npm run check:lint script
  • [ ] Self-review completed using the steps outlined here
  • [ ] PR title follows the correct format: type(NODE-xxxx)[!]: description
    • Example: feat(NODE-1234)!: rewriting everything in coffeescript
  • [ ] Changes are covered by tests
  • [ ] New TODOs have a related JIRA ticket

aditi-khare-mongoDB avatar Sep 19 '24 21:09 aditi-khare-mongoDB