Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

SERVER-8696 buildbot no_balance_collection.js wait for changelog writ…

…e before recording last migration
  • Loading branch information...
commit 43f8fdac6e87dc022e2dcb044ad28c1e4903d6e9 1 parent 70e051c
Greg Studer authored monkey101 committed
4  jstests/slowNightly/no_balance_collection.js
@@ -60,6 +60,10 @@ jsTest.log( "Chunks for " + collB + " are balanced." )
60 60
 
61 61
 // Re-disable balancing for collB
62 62
 sh.disableBalancing( collB )
  63
+// Wait for the balancer to fully finish the last migration and write the changelog
  64
+// MUST set db var here, ugly but necessary
  65
+db = st.s0.getDB("config")
  66
+sh.waitForBalancer(true)
63 67
 
64 68
 // Make sure auto-migrates on insert don't move chunks
65 69
 var lastMigration = sh._lastMigration( collB )

0 notes on commit 43f8fda

Please sign in to comment.
Something went wrong with that request. Please try again.