-
Notifications
You must be signed in to change notification settings - Fork 1.8k
fix(NODE-5052): prevent cursor and changestream close logic from running more than once #3562
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
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
cbebd10
fix(NODE-5052): prevent cursor and changestream close logic from runn…
nbbeeken fc3ec7b
fix: keep cleaning up session, check for unhandled errors
nbbeeken 3f02916
move flag setting to after clean up
nbbeeken 0a3bd27
prevent mocha from ending early
nbbeeken c9db9ef
use uncaughtExceptionMonitor
nbbeeken c24d62d
do _something_ for unknown origin
nbbeeken 465c058
reset arrays in after hook
nbbeeken b2238f6
removeAllListeners should be called whenever cursor closes
nbbeeken 4404f73
fix up legacy tests
nbbeeken 3ae17cf
test cleanup
nbbeeken aecb077
fix lint
nbbeeken 28d6ee5
rollup cleanup into helpers
nbbeeken 53c1314
fix tests
nbbeeken 6387545
reset abstract_cursor
nbbeeken 796ada5
gate on killed/closed
nbbeeken 05acf5d
gate on killed/closed round 2
nbbeeken adaa40e
do not try to use a session that hasEnded
nbbeeken eb34100
cleanup test
nbbeeken 3a52ff6
unknown array
nbbeeken c3c7cdb
clean up find_cursor tests
nbbeeken 2ac087c
drop in crud_api tests
nbbeeken f1f8fd3
do not set kClosed early
nbbeeken 430e8aa
pass iterable to .race
nbbeeken 16e582f
fix if stmt
nbbeeken 8cbe891
remove gating
nbbeeken c12b8bb
Merge branch 'main' into NODE-5052-close-change-stream
nbbeeken feefb02
test: update title
nbbeeken 08037f8
fix: test name org
nbbeeken 4babaee
fix: test title
nbbeeken d1fc282
improve readability
nbbeeken File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.