summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommaso Tocci <tommaso.tocci@mongodb.com>2020-03-06 11:40:20 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-23 15:26:29 +0000
commitc2d9e718ed392e43ac528d2bd20c20369d6941ea (patch)
treea56f7a25f68f384727190e9efd11e6e3a42e9c17
parent3d430b974fca9c453db0463dad0747f31cb94bb1 (diff)
downloadmongo-c2d9e718ed392e43ac528d2bd20c20369d6941ea.tar.gz
SERVER-46214 make autosplit_low_cardinality.js wait for all chunkSplit operations after every insert
(cherry picked from commit 3d7ca6d09f0b49c3a8a142105261a7cd896da8d3)
-rw-r--r--jstests/sharding/autosplit_low_cardinality.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/sharding/autosplit_low_cardinality.js b/jstests/sharding/autosplit_low_cardinality.js
index c3b91a6a7c7..f9c4d8bf2ae 100644
--- a/jstests/sharding/autosplit_low_cardinality.js
+++ b/jstests/sharding/autosplit_low_cardinality.js
@@ -30,6 +30,7 @@ function insertBigDocsWithKey(key, numDocs) {
bulk.insert({sk: key, sub: i, bs: bigString});
}
assert.commandWorked(bulk.execute());
+ waitForOngoingChunkSplits(st);
}
function numChunks() {