-
Notifications
You must be signed in to change notification settings - Fork 1.8k
NODE-2274: unified failover server loss #2197
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
8d487d1
fix(sdam): don't remove unknown servers in topology updates
mbroadst 2f8f8fd
refactor(pool): support a callback in `connect`
mbroadst 5498b6f
fix(sdam): don't emit `close` every time a child server closes
mbroadst db0d63a
fix(sdam): don't lose servers when they fail monitoring
mbroadst 0183427
refactor(sdam): `null` => `undefined`
mbroadst d2b5549
refactor(sdam): track server connections in a different timer list
mbroadst c152aa1
refactor(pool): support creating connections in `destroying` state
mbroadst eca376c
fix(close): the unified topology emits a close event on close now
mbroadst 85a4db5
fix(server): ensure state is transitioned to closed on connect fail
mbroadst 93497a5
fix(server): don't emit error in connect if closing/closed
mbroadst 7951949
fix(sdam): ignore server errors when closing/closed
mbroadst fd26385
fix(sdam): `minHeartbeatIntervalMS` => `minHeartbeatFrequencyMS`
mbroadst dda0a7f
refactor(sdam): revert `null` => `undefined` changes until 4.x
mbroadst 1714ace
test: allow specifying that tests require legacy topologies
mbroadst 8dc06a0
refactor(pool): don't explicitly create new connection on reset
mbroadst 051fce7
test: `newTopology` should use all hosts from a connection string
mbroadst ef9b45e
test: add script for running each test, useful for finding leaks
mbroadst 4b46845
test: ensure mocha is always being run recursively
mbroadst 8c9bf39
refactor(pool): introduce `draining` state to account for late ops
mbroadst 00b8833
fix(pool): only transition to `DISCONNECTED` if reconnect enabled
mbroadst 87bd12f
test: increase server selection timeout for flakey test
mbroadst 15b4c9c
fix(monitoring): incorrect states used to determine rescheduling
mbroadst db6f3fe
fix(pool): don't reset a pool if we'not already connected
mbroadst 7d5fab2
refactor(server): do not permit commands when server is closed
mbroadst 060b90f
test: skip broken transaction tests until SERVER-40685 is fixed
mbroadst c552786
test: refactor logic for unified topology filter
mbroadst f57b9e2
refactor(topology): use sets for timer management
mbroadst 55b4e24
test: add tests around pool reset behavior
mbroadst c38668d
refactor(pool): wait for `createConnection` on pool reset
mbroadst 30dfc02
refactor(topology): don't explicit reset pool on SDAM unrecoverable
mbroadst 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
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.