Sync "secondary with mismatched me" spec test
This commit is contained in:
parent
ca57ecea4a
commit
13364a28fb
@ -0,0 +1,62 @@
|
||||
{
|
||||
"description": "Secondary with mismatched 'me' tells us who the primary is",
|
||||
"uri": "mongodb://a/?replicaSet=rs",
|
||||
"phases": [
|
||||
{
|
||||
"responses": [
|
||||
[
|
||||
"a:27017",
|
||||
{
|
||||
"ok": 1,
|
||||
"ismaster": false,
|
||||
"secondary": true,
|
||||
"me": "c:27017",
|
||||
"hosts": [
|
||||
"b:27017"
|
||||
],
|
||||
"setName": "rs",
|
||||
"primary": "b:27017"
|
||||
}
|
||||
]
|
||||
],
|
||||
"outcome": {
|
||||
"servers": {
|
||||
"b:27017": {
|
||||
"type": "PossiblePrimary",
|
||||
"setName": null
|
||||
}
|
||||
},
|
||||
"topologyType": "ReplicaSetNoPrimary",
|
||||
"logicalSessionTimeoutMinutes": null,
|
||||
"setName": "rs"
|
||||
}
|
||||
},
|
||||
{
|
||||
"responses": [
|
||||
[
|
||||
"b:27017",
|
||||
{
|
||||
"ok": 1,
|
||||
"ismaster": true,
|
||||
"me": "b:27017",
|
||||
"hosts": [
|
||||
"b:27017"
|
||||
],
|
||||
"setName": "rs"
|
||||
}
|
||||
]
|
||||
],
|
||||
"outcome": {
|
||||
"servers": {
|
||||
"b:27017": {
|
||||
"type": "RSPrimary",
|
||||
"setName": "rs"
|
||||
}
|
||||
},
|
||||
"topologyType": "ReplicaSetWithPrimary",
|
||||
"logicalSessionTimeoutMinutes": null,
|
||||
"setName": "rs"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user