-
Notifications
You must be signed in to change notification settings - Fork 245
DRIVERS-3344 - Add support for server selection's deprioritized servers to all topologies #1865
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
NoahStapp
wants to merge
11
commits into
mongodb:master
Choose a base branch
from
NoahStapp:DRIVERS-3344
base: master
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
11 commits
Select commit
Hold shift + click to select a range
694ae4d
DRIVERS-3344 - Add support for server selection's deprioritized serve…
NoahStapp 8092cc0
Linting
NoahStapp a20b81a
More linting
NoahStapp 4a1bcdc
More linting
NoahStapp c5f04fa
Add tests to verify correct behavior for preferred when all servers a…
NoahStapp 56711a1
Address review
NoahStapp 3ddbfd8
Track deprioritized addresses not servers
NoahStapp 4282bfa
Adress bailey review
NoahStapp 11100fa
Clarify correct deprioritized example and preferred behavior
NoahStapp 615ec0e
Clarify preferred deprioritization
NoahStapp 249dc81
Fix JSON
NoahStapp 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
62 changes: 62 additions & 0 deletions
62
...erver-selection/tests/server_selection/ReplicaSetNoPrimary/read/DeprioritizedNearest.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
...server-selection/tests/server_selection/ReplicaSetNoPrimary/read/DeprioritizedNearest.yml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| topology_description: | ||
| type: ReplicaSetNoPrimary | ||
| servers: | ||
| - &1 | ||
| address: b:27017 | ||
| avg_rtt_ms: 5 | ||
| type: RSSecondary | ||
| tags: | ||
| data_center: nyc | ||
| - &2 | ||
| address: c:27017 | ||
| avg_rtt_ms: 100 | ||
| type: RSSecondary | ||
| tags: | ||
| data_center: nyc | ||
| operation: read | ||
| read_preference: | ||
| mode: Nearest | ||
| tag_sets: | ||
| - data_center: nyc | ||
| deprioritized_servers: | ||
| - *1 | ||
| suitable_servers: | ||
| - *2 | ||
| in_latency_window: | ||
| - *2 |
39 changes: 39 additions & 0 deletions
39
...erver-selection/tests/server_selection/ReplicaSetNoPrimary/read/DeprioritizedPrimary.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
...server-selection/tests/server_selection/ReplicaSetNoPrimary/read/DeprioritizedPrimary.yml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| topology_description: | ||
| type: ReplicaSetNoPrimary | ||
| servers: | ||
| - &1 | ||
| address: b:27017 | ||
| avg_rtt_ms: 5 | ||
| type: RSSecondary | ||
| tags: | ||
| data_center: nyc | ||
| - &2 | ||
| address: c:27017 | ||
| avg_rtt_ms: 100 | ||
| type: RSSecondary | ||
| tags: | ||
| data_center: nyc | ||
| operation: read | ||
| read_preference: | ||
| mode: Primary | ||
| deprioritized_servers: | ||
| - *1 | ||
| suitable_servers: [] | ||
| in_latency_window: [] |
62 changes: 62 additions & 0 deletions
62
...ection/tests/server_selection/ReplicaSetNoPrimary/read/DeprioritizedPrimaryPreferred.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
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.