Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

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

…e before recording last migration
  • Loading branch information...
1 parent 70e051c commit 43f8fdac6e87dc022e2dcb044ad28c1e4903d6e9 Greg Studer committed with monkey101
Showing with 4 additions and 0 deletions.
  1. +4 −0 jstests/slowNightly/no_balance_collection.js
4 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")
// Make sure auto-migrates on insert don't move chunks
var lastMigration = sh._lastMigration( collB )

0 comments on commit 43f8fda

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