Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"topology_description": {
"type": "ReplicaSetWithPrimary",
"servers": [
{
"address": "a:27017",
"avg_rtt_ms": 5,
"type": "RSPrimary"
},
{
"address": "b:27017",
"avg_rtt_ms": 5,
"type": "RSSecondary"
}
]
},
"operation": "read",
"read_preference": {
"mode": "SecondaryPreferred",
"tag_sets": [
{
"data_center": "nyc"
},
{}
]
},
"suitable_servers": [
{
"address": "b:27017",
"avg_rtt_ms": 5,
"type": "RSSecondary"
}
],
"in_latency_window": [
{
"address": "b:27017",
"avg_rtt_ms": 5,
"type": "RSSecondary"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Attempt to select the secondary using an empty tag set. Expect empty tag set to match.
# This is a regression test for RUST-2363.
---
topology_description:
type: ReplicaSetWithPrimary
servers:
- &1
address: a:27017
avg_rtt_ms: 5
type: RSPrimary
# No "tags".
- &2
address: b:27017
avg_rtt_ms: 5
type: RSSecondary
# No "tags"
operation: read
read_preference:
mode: SecondaryPreferred
tag_sets:
- data_center: nyc # Does not match.
- {} # Empty tag set.
suitable_servers:
- *2
in_latency_window:
- *2