-
Notifications
You must be signed in to change notification settings - Fork 1.8k
fix(NODE-4413): set maxTimeMS on getMores when maxAwaitTimeMS is specified #3319
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
Conversation
aeabbd7 to
ef2ea17
Compare
74fdbb3 to
f8647fa
Compare
02c678a to
7a23092
Compare
| // eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
| const getMoreOperation = new GetMoreOperation(this[kNamespace], this[kId]!, this[kServer]!, { |
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.
Do we have tests that test for errors being thrown when execute is called on a zero-ed cursor or if the server is undefined? If not, can we add them to demonstrate this behavior still exists?
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.
Added! :)
ac2b000 to
7b956a2
Compare
0e2117d to
83c1b56
Compare
| .expectEvents({ | ||
| client: 'client0', | ||
| events: [ | ||
| { commandStartedEvent: { commandName: 'aggregate' } }, |
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.
why do we assert absence of the prop on the getMore in the 2nd case, but not on the initial aggregate here? what's the actual expected behavior from these options in the two cases?
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.
Added an (not) existence check, and clarified the titles
Description
What is changing?
What is the motivation for this change?
Fix maxAwaitTimeMS not being respected by change stream getMores (all getMores were impacted actually)
Double check the following
npm run check:lintscript<type>(NODE-xxxx)<!>: <description>