summaryrefslogtreecommitdiff
path: root/jstests/libs/chunk_manipulation_util.js
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2016-10-06 18:08:33 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2016-10-07 19:32:48 -0400
commit30b79f47f04926d972192ed06a1fa08620592b67 (patch)
tree1151621aa76508eb6b16ea5bb0a9bca18ac72d15 /jstests/libs/chunk_manipulation_util.js
parent9f496a34f46adec73ed6da49b869c169c2a70519 (diff)
downloadmongo-30b79f47f04926d972192ed06a1fa08620592b67.tar.gz
SERVER-26471 Always incrementally refresh metadata after committing chunk migration
Also introduces a failpoint and js test to exercise the race condition.
Diffstat (limited to 'jstests/libs/chunk_manipulation_util.js')
-rw-r--r--jstests/libs/chunk_manipulation_util.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/libs/chunk_manipulation_util.js b/jstests/libs/chunk_manipulation_util.js
index 0f09340a5aa..496d489701b 100644
--- a/jstests/libs/chunk_manipulation_util.js
+++ b/jstests/libs/chunk_manipulation_util.js
@@ -57,8 +57,9 @@ var moveChunkStepNames = {
gotDistLock: 2,
startedMoveChunk: 3, // called _recvChunkStart on recipient
reachedSteadyState: 4, // recipient reports state is "steady"
- committed: 5,
- done: 6
+ chunkDataCommitted: 5, // called _recvChunkCommit on recipient
+ committed: 6,
+ done: 7
};
function numberToName(names, stepNumber) {