We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f504962 commit f49669fCopy full SHA for f49669f
jstests/sharding/gle_sharded_wc.js
@@ -132,8 +132,12 @@ assert.eq(coll.count(), 0);
132
// Successful bulk insert on two hosts, host changes before gle (error contacting host)
133
coll.remove({});
134
coll.insert([{ _id : 1 }, { _id : -1 }]);
135
+// Wait for write to be written to shards before shutting it down.
136
+printjson(gle = coll.getDB().runCommand({ getLastError : 1 }));
137
+
138
st.rs0.stop(st.rs0.getPrimary(), true); // wait for stop
139
printjson(gle = coll.getDB().runCommand({ getLastError : 1 }));
140
+// Should get an error about contacting dead host.
141
assert(!gle.ok);
142
assert(gle.errmsg);
143
assert.eq(coll.count({ _id : 1 }), 1);
0 commit comments