summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanna Golden <janna.golden@mongodb.com>2019-10-22 15:18:43 +0000
committerevergreen <evergreen@mongodb.com>2019-10-22 15:18:43 +0000
commitf21fbad4a68fb9447a26c355a006e387b9eccd7b (patch)
tree614855e78cb67e490ccdd0f9f171869171d1fe13
parentd33751abc223bc31a5145f4ffe745012abd978ec (diff)
downloadmongo-f21fbad4a68fb9447a26c355a006e387b9eccd7b.tar.gz
SERVER-31238 Add awaitLastOpTimeCommitted between split and move chunk commands in multi_mongos2.js
-rw-r--r--jstests/sharding/multi_mongos2.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/sharding/multi_mongos2.js b/jstests/sharding/multi_mongos2.js
index 796ef9e3a7e..1c85a3dfd23 100644
--- a/jstests/sharding/multi_mongos2.js
+++ b/jstests/sharding/multi_mongos2.js
@@ -50,6 +50,7 @@ assert.commandWorked(st.s1.adminCommand({shardcollection: "test.existing3", key:
st.configRS.awaitLastOpCommitted();
assert.commandWorked(st.s1.adminCommand({split: "test.existing3", middle: {_id: 5}}));
+st.configRS.awaitLastOpCommitted();
assert.commandWorked(
st.s0.adminCommand({moveChunk: "test.existing3", find: {_id: 1}, to: st.shard0.shardName}));