node-mongodb-native
node-mongodb-native copied to clipboard
feat(NODE-6389): add support for timeoutMS in StateMachine.execute()
Description
StateMachine.execute and commands run against a mongocryptd server respect a timeoutMS.
What is changing?
StateMachine.executemethod respectstimeoutMSfor 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.'
mongocryptdcommands now use remaining timeoutMS is used, and maxTimeMS is not appended to the command (ServerDescription.iscryptdfield 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:lintscript - [ ] 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
- Example:
- [ ] Changes are covered by tests
- [ ] New TODOs have a related JIRA ticket