File tree Expand file tree Collapse file tree 4 files changed +147
-70
lines changed
mongo-orchestration/sharded_clusters Expand file tree Collapse file tree 4 files changed +147
-70
lines changed Original file line number Diff line number Diff line change 50
50
"journal" : true ,
51
51
"logappend" : true ,
52
52
"port" : 4400 ,
53
- "bind_ip_all" : true
53
+ "bind_ip_all" : true ,
54
+ "setParameter" : {
55
+ "periodicNoopIntervalSecs" : 1 ,
56
+ "writePeriodicNoops" : true
57
+ }
54
58
} },
55
59
{ "procParams" : {
56
60
"dbpath" : " /tmp/SHARDED-RS/SHARD1/4401" ,
59
63
"journal" : true ,
60
64
"logappend" : true ,
61
65
"port" : 4401 ,
62
- "bind_ip_all" : true
66
+ "bind_ip_all" : true ,
67
+ "setParameter" : {
68
+ "periodicNoopIntervalSecs" : 1 ,
69
+ "writePeriodicNoops" : true
70
+ }
63
71
} }
64
72
]
65
73
}
76
84
"journal" : true ,
77
85
"logappend" : true ,
78
86
"port" : 4410 ,
79
- "bind_ip_all" : true
87
+ "bind_ip_all" : true ,
88
+ "setParameter" : {
89
+ "periodicNoopIntervalSecs" : 1 ,
90
+ "writePeriodicNoops" : true
91
+ }
80
92
} },
81
93
{ "procParams" : {
82
94
"dbpath" : " /tmp/SHARDED-RS/SHARD2/4411" ,
85
97
"journal" : true ,
86
98
"logappend" : true ,
87
99
"port" : 4411 ,
88
- "bind_ip_all" : true
100
+ "bind_ip_all" : true ,
101
+ "setParameter" : {
102
+ "periodicNoopIntervalSecs" : 1 ,
103
+ "writePeriodicNoops" : true
104
+ }
89
105
} }
90
106
]
91
107
}
Original file line number Diff line number Diff line change @@ -935,6 +935,10 @@ public function testChangeStreamExample_1_4()
935
935
{
936
936
$ this ->skipIfChangeStreamIsNotSupported ();
937
937
938
+ if ($ this ->isShardedCluster ()) {
939
+ $ this ->markTestSkipped ('Test does not apply on sharded clusters: need more than a single getMore call on the change stream. ' );
940
+ }
941
+
938
942
$ db = new Database ($ this ->manager , $ this ->getDatabaseName ());
939
943
$ db ->dropCollection ('inventory ' );
940
944
$ db ->createCollection ('inventory ' );
Original file line number Diff line number Diff line change @@ -336,9 +336,6 @@ protected function skipIfChangeStreamIsNotSupported()
336
336
if (! $ this ->isShardedClusterUsingReplicasets ()) {
337
337
$ this ->markTestSkipped ('$changeStream is only supported with replicasets ' );
338
338
}
339
-
340
- // Temporarily skip tests because of an issue with change streams in the driver
341
- $ this ->markTestSkipped ('$changeStreams currently don \'t on replica sets ' );
342
339
break ;
343
340
344
341
case Server::TYPE_RS_PRIMARY :
You can’t perform that action at this time.
0 commit comments