File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed
test/discovery_and_monitoring/rs Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "description" : " Primary becomes a secondary with wrong setName" ,
3
+ "phases" : [
4
+ {
5
+ "outcome" : {
6
+ "servers" : {
7
+ "a:27017" : {
8
+ "setName" : " rs" ,
9
+ "type" : " RSPrimary"
10
+ }
11
+ },
12
+ "setName" : " rs" ,
13
+ "topologyType" : " ReplicaSetWithPrimary"
14
+ },
15
+ "responses" : [
16
+ [
17
+ " a:27017" ,
18
+ {
19
+ "hosts" : [
20
+ " a:27017"
21
+ ],
22
+ "ismaster" : true ,
23
+ "ok" : 1 ,
24
+ "setName" : " rs"
25
+ }
26
+ ]
27
+ ]
28
+ },
29
+ {
30
+ "outcome" : {
31
+ "servers" : {},
32
+ "setName" : " rs" ,
33
+ "topologyType" : " ReplicaSetNoPrimary"
34
+ },
35
+ "responses" : [
36
+ [
37
+ " a:27017" ,
38
+ {
39
+ "hosts" : [
40
+ " a:27017"
41
+ ],
42
+ "ismaster" : false ,
43
+ "ok" : 1 ,
44
+ "secondary" : true ,
45
+ "setName" : " wrong"
46
+ }
47
+ ]
48
+ ]
49
+ }
50
+ ],
51
+ "uri" : " mongodb://a/?replicaSet=rs"
52
+ }
You can’t perform that action at this time.
0 commit comments