Skip to content

Commit

Permalink
SERVER-23915 Make split_stale_mongos.js wait for split to propagate t…
Browse files Browse the repository at this point in the history
…o all config servers
  • Loading branch information
stbrody committed Apr 25, 2016
1 parent 046441d commit d30ab0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jstests/sharding/split_stale_mongos.js
Expand Up @@ -12,7 +12,9 @@ assert.commandWorked(admin.runCommand({shardCollection: testNs, key: {_id: 1}}))

for (var i = 0; i < 100; i += 10) {
assert.commandWorked(st.s0.getDB('admin').runCommand({split: testNs, middle: {_id: i}}));
st.configRS.awaitLastOpCommitted(); // Ensure that other mongos sees the previous split
assert.commandWorked(st.s1.getDB('admin').runCommand({split: testNs, middle: {_id: i + 5}}));
st.configRS.awaitLastOpCommitted(); // Ensure that other mongos sees the previous split
}

st.stop();

0 comments on commit d30ab0a

Please sign in to comment.