diff options
-rw-r--r-- | jstests/sharding/zero_shard_version.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/jstests/sharding/zero_shard_version.js b/jstests/sharding/zero_shard_version.js index 9f15e247e83..1037c1e7b75 100644 --- a/jstests/sharding/zero_shard_version.js +++ b/jstests/sharding/zero_shard_version.js @@ -29,6 +29,8 @@ assert.commandWorked( testDB_s1.adminCommand({moveChunk: 'test.user', find: {x: 0}, to: 'shard0000'})); + st.configRS.awaitLastOpCommitted(); + // Official config: // shard0: 2|0|a, [-inf, inf) // shard1: 0|0|a @@ -92,6 +94,8 @@ assert.commandWorked( testDB_s1.adminCommand({moveChunk: 'test.user', find: {x: -1}, to: 'shard0000'})); + st.configRS.awaitLastOpCommitted(); + // Official config: // shard0: 2|0|b, [-inf, 0) // shard1: 2|1|b, [0, inf) @@ -153,6 +157,8 @@ assert.commandWorked( testDB_s1.adminCommand({moveChunk: 'test.user', find: {x: 0}, to: 'shard0000'})); + st.configRS.awaitLastOpCommitted(); + // Official config: // shard0: 2|0|c, [-inf, inf) // shard1: 0|0|c |