Skip to content

Commit

Permalink
Test PossiblePrimary isn't candidate for any read pref.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajdavis committed Oct 11, 2016
1 parent ca9d70b commit b77e88f
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"in_latency_window": [],
"operation": "read",
"read_preference": {
"mode": "Primary",
"tag_sets": [
{}
]
},
"suitable_servers": [],
"topology_description": {
"servers": [
{
"address": "b:27017",
"avg_rtt_ms": 5,
"type": "PossiblePrimary"
}
],
"type": "ReplicaSetNoPrimary"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Test that PossiblePrimary isn't candidate for any read preference mode.
---
topology_description:
type: ReplicaSetNoPrimary
servers:
- address: b:27017
avg_rtt_ms: 5
type: PossiblePrimary
operation: read
read_preference:
mode: Primary
tag_sets:
- {}
suitable_servers: []
in_latency_window: []
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"in_latency_window": [],
"operation": "read",
"read_preference": {
"mode": "Nearest",
"tag_sets": [
{}
]
},
"suitable_servers": [],
"topology_description": {
"servers": [
{
"address": "b:27017",
"avg_rtt_ms": 5,
"type": "PossiblePrimary"
}
],
"type": "ReplicaSetNoPrimary"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Test that PossiblePrimary isn't candidate for any read preference mode.
---
topology_description:
type: ReplicaSetNoPrimary
servers:
- address: b:27017
avg_rtt_ms: 5
type: PossiblePrimary
operation: read
read_preference:
mode: Nearest
tag_sets:
- {}
suitable_servers: []
in_latency_window: []

0 comments on commit b77e88f

Please sign in to comment.