diff options
author | Greg Studer <greg@10gen.com> | 2013-02-26 16:51:12 -0500 |
---|---|---|
committer | Greg Studer <greg@10gen.com> | 2013-02-26 16:52:12 -0500 |
commit | 17665ae38630a340d1c73537dde9f333750d18df (patch) | |
tree | c8199ef376783ae98cf96287f95409efe2bd81f6 | |
parent | 7e7866cc263c2af803ba2479b212c245f73d57bc (diff) | |
download | mongo-17665ae38630a340d1c73537dde9f333750d18df.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.js | 4 |
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 ) |