diff options
author | Dianna Hohensee <dianna.hohensee@10gen.com> | 2017-08-23 16:52:51 -0400 |
---|---|---|
committer | Dianna Hohensee <dianna.hohensee@10gen.com> | 2017-09-22 19:01:46 -0400 |
commit | 8e8b048ebf6ec989eb3a54e45cf6cb5892442748 (patch) | |
tree | f5698508cef4b471b7ca8a477eff8d19ed426a0a /jstests/libs/chunk_manipulation_util.js | |
parent | 74c1946fb05b9fe955f84edd1cc441394bbe6ccf (diff) | |
download | mongo-8e8b048ebf6ec989eb3a54e45cf6cb5892442748.tar.gz |
SERVER-30621 Ensure chunk metadata exists when cleanUpRange is called in moveChunk
Diffstat (limited to 'jstests/libs/chunk_manipulation_util.js')
-rw-r--r-- | jstests/libs/chunk_manipulation_util.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/jstests/libs/chunk_manipulation_util.js b/jstests/libs/chunk_manipulation_util.js index 75a350d6bbc..b431b299137 100644 --- a/jstests/libs/chunk_manipulation_util.js +++ b/jstests/libs/chunk_manipulation_util.js @@ -58,8 +58,7 @@ var moveChunkStepNames = { startedMoveChunk: 3, // called _recvChunkStart on recipient reachedSteadyState: 4, // recipient reports state is "steady" chunkDataCommitted: 5, // called _recvChunkCommit on recipient - committed: 6, - done: 7 + committed: 6 }; function numberToName(names, stepNumber) { @@ -97,9 +96,9 @@ function proceedToMoveChunkStep(shardConnection, stepNumber) { } function configureMoveChunkFailPoint(shardConnection, stepNumber, mode) { - assert.between(migrateStepNames.copiedIndexes, + assert.between(moveChunkStepNames.parsedOptions, stepNumber, - migrateStepNames.done, + moveChunkStepNames.committed, "incorrect stepNumber", true); assert.commandWorked(shardConnection.adminCommand( |