| 1 |
{ |
| 2 |
"description": "Pre-4.2 NotPrimaryNoSecondaryOk error", |
| 3 |
"uri": "mongodb://a/?replicaSet=rs", |
| 4 |
"phases": [ |
| 5 |
{ |
| 6 |
"description": "Primary A is discovered", |
| 7 |
"responses": [ |
| 8 |
[ |
| 9 |
"a:27017", |
| 10 |
{ |
| 11 |
"ok": 1, |
| 12 |
"helloOk": true, |
| 13 |
"isWritablePrimary": true, |
| 14 |
"hosts": [ |
| 15 |
"a:27017" |
| 16 |
], |
| 17 |
"setName": "rs", |
| 18 |
"minWireVersion": 0, |
| 19 |
"maxWireVersion": 7 |
| 20 |
} |
| 21 |
] |
| 22 |
], |
| 23 |
"outcome": { |
| 24 |
"servers": { |
| 25 |
"a:27017": { |
| 26 |
"type": "RSPrimary", |
| 27 |
"setName": "rs", |
| 28 |
"topologyVersion": null, |
| 29 |
"pool": { |
| 30 |
"generation": 0 |
| 31 |
} |
| 32 |
} |
| 33 |
}, |
| 34 |
"topologyType": "ReplicaSetWithPrimary", |
| 35 |
"logicalSessionTimeoutMinutes": null, |
| 36 |
"setName": "rs" |
| 37 |
} |
| 38 |
}, |
| 39 |
{ |
| 40 |
"description": "Pre-4.2 NotPrimaryNoSecondaryOk error marks server Unknown and clears the pool", |
| 41 |
"applicationErrors": [ |
| 42 |
{ |
| 43 |
"address": "a:27017", |
| 44 |
"when": "afterHandshakeCompletes", |
| 45 |
"maxWireVersion": 7, |
| 46 |
"type": "command", |
| 47 |
"response": { |
| 48 |
"ok": 0, |
| 49 |
"errmsg": "NotPrimaryNoSecondaryOk", |
| 50 |
"code": 13435 |
| 51 |
} |
| 52 |
} |
| 53 |
], |
| 54 |
"outcome": { |
| 55 |
"servers": { |
| 56 |
"a:27017": { |
| 57 |
"type": "Unknown", |
| 58 |
"topologyVersion": null, |
| 59 |
"pool": { |
| 60 |
"generation": 1 |
| 61 |
} |
| 62 |
} |
| 63 |
}, |
| 64 |
"topologyType": "ReplicaSetNoPrimary", |
| 65 |
"logicalSessionTimeoutMinutes": null, |
| 66 |
"setName": "rs" |
| 67 |
} |
| 68 |
} |
| 69 |
] |
| 70 |
} |