summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Studer <greg@10gen.com>2013-02-26 16:51:12 -0500
committerDan Pasette <dan@10gen.com>2013-03-11 14:07:42 -0400
commit43f8fdac6e87dc022e2dcb044ad28c1e4903d6e9 (patch)
treea7d27d9df1ce268ba994d6879c72d519e70e9bfd
parent70e051c0480212f80582713da5f0736d12f51de8 (diff)
downloadmongo-43f8fdac6e87dc022e2dcb044ad28c1e4903d6e9.tar.gz
SERVER-8696 buildbot no_balance_collection.js wait for changelog write before recording last migration
-rw-r--r--jstests/slowNightly/no_balance_collection.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/slowNightly/no_balance_collection.js b/jstests/slowNightly/no_balance_collection.js
index ea9b64c86b9..7aa55564640 100644
--- a/jstests/slowNightly/no_balance_collection.js
+++ b/jstests/slowNightly/no_balance_collection.js
@@ -60,6 +60,10 @@ jsTest.log( "Chunks for " + collB + " are balanced." )
// Re-disable balancing for collB
sh.disableBalancing( collB )
+// Wait for the balancer to fully finish the last migration and write the changelog
+// MUST set db var here, ugly but necessary
+db = st.s0.getDB("config")
+sh.waitForBalancer(true)
// Make sure auto-migrates on insert don't move chunks
var lastMigration = sh._lastMigration( collB )