-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add support for server selection's deprioritized servers to all topologies. #1860
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
Open
vbabanin
wants to merge
55
commits into
mongodb:backpressure
Choose a base branch
from
vbabanin:JAVA-6021
base: backpressure
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
e6083b4
Add support for server selection's deprioritized servers to all topol…
vbabanin de2856b
Remove global OperationContext in tests as it has mutable state.
vbabanin 689d6cb
Add more test-cases.
vbabanin a8ddab2
Fix static checks.
vbabanin 1eddabf
Allow invoking connect.
vbabanin d62a576
Update driver-core/src/main/com/mongodb/internal/connection/Operation…
vbabanin 777ced9
Update driver-core/src/test/unit/com/mongodb/connection/ServerSelecti…
vbabanin 85cc1aa
Update driver-core/src/test/unit/com/mongodb/connection/ServerSelecti…
vbabanin 893d419
Use "create" prefix consistently.
vbabanin 19ab190
Remove craeteNewOperationContext.
vbabanin 05beaf2
Change visibility modifier.
vbabanin 0bf110b
Rename applyDeprioritization method to apply.
vbabanin 46b9b8d
Add TODO comments for performance optimization.
vbabanin cd5dcf1
Add empty line.
vbabanin dfae55b
Return ALL_SERVERS from selector.
vbabanin bb54d82
Make heartbeatFrequencyMS a local variable.
vbabanin 3bd9710
Revert to assumeFalse.
vbabanin 1f38bc7
Use Junit4.
vbabanin 70e1eeb
Convert comment to a class documentation comment.
vbabanin 59b1aa1
Remove deprioritizedServerAddresses field.
vbabanin 41849e7
Move inLatencyWindowServers to pre-try.
vbabanin cb3e7d6
Remove unnecessary symbol.
vbabanin 793507a
Add assertion context.
vbabanin f4ab841
Remove redundant comment.
vbabanin 11cf14a
Use immediate timeout.
vbabanin 9017de8
Use MongoException instead of MongoConfigurationException.
vbabanin bc0f8da
Remove createTestCluster method.
vbabanin 23332b2
Use com.mongodb.assertions.Assertions.fail for a Fake cluster.
vbabanin b4fe6f3
Change message.
vbabanin 7a4dcfd
Update driver-core/src/test/unit/com/mongodb/internal/connection/Serv…
vbabanin 2e38a65
Use MongoMockito.
vbabanin d1868a3
Remove TODO.
vbabanin 021e7f5
Use withNewServerDeprioritization.
vbabanin 44a66c1
Make ServerDeprioritization private.
vbabanin 9f047b7
Remove unused methods.
vbabanin a1c052a
Reuse OperationContext.
vbabanin 704d829
Use a documentation comment.
vbabanin 3736c17
Use VisibleForTesting(otherwise = PROTECTED).
vbabanin 817a5c5
Reuse OperatioContext.
vbabanin 3373c14
Change comments.
vbabanin 0cb9bf2
Change comments.
vbabanin ae8d201
Use createOperationContext.
vbabanin 446f8ff
Address review feedback
vbabanin 2bf6aaa
Limit server selection deprioritization to system overloaded errors o…
vbabanin 1f4c0c9
Update driver-core/src/test/unit/com/mongodb/connection/ServerSelecti…
vbabanin 29199e5
Update driver-core/src/main/com/mongodb/internal/connection/Operation…
vbabanin 4d03cd2
Update driver-core/src/main/com/mongodb/internal/connection/Operation…
vbabanin 4e69816
Update driver-core/src/main/com/mongodb/internal/connection/Operation…
vbabanin 40aecc7
Update driver-core/src/test/unit/com/mongodb/internal/connection/Defa…
vbabanin a911780
Address PR review feedback
vbabanin 8f1fbbb
Update visibility.
vbabanin 0b8a594
Remove unused imports.
vbabanin 6814a58
Change to find.
vbabanin 08c1164
Fix config.
vbabanin 0110bb0
Fix flaky prose tests by waiting for primary discovery
vbabanin 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
Some comments aren't visible on the classic Files Changed page.
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
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.