-
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-6377): remove noResponse option #4240
base: main
Are you sure you want to change the base?
Conversation
lint fix lont fix 2
temp temp2
0342d92
to
419a848
Compare
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.
Just some quick comment fixes
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.
CI needs a closer look 👁️
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.
Still seeing tasks timeout ⏲️
Description
Now that unacknowledged writes are supported through
writeConcern.w = 0
, remove the buggynoResponse option
internally and in public APIs.What is changing?
CommandOperationOptions
APIclient.close()
andRunAdminCommandOperation
to usewriteConcern
insteadIs there new documentation needed for these changes?
None, except removing the option from the Public API.
What is the motivation for this change?
NODE-6060.
Release Highlight
Remove
CommandOperationOptions.noResponse
optionSetting the
noResponse
option onCommandOperationOptions
would result in indeterminate socket behavior leading to either silent or thrown errors on any following operations. Since this option is broken and causes bugs, we're removing it to call attention to any code that may have been using it inadvertently.In order to correctly request that the driver recieves 'no response' from the server (usually to perform an unacknowledged write) setting the
WriteConcern.w
property to0
is the recommended migration.Double check the following
npm run check:lint
scripttype(NODE-xxxx)[!]: description
feat(NODE-1234)!: rewriting everything in coffeescript