summaryrefslogtreecommitdiff
path: root/jstests/sharding/movechunk_interrupt_at_primary_stepdown.js
diff options
context:
space:
mode:
authorNathan Myers <nathan.myers@10gen.com>2017-01-15 23:53:29 -0500
committerNathan Myers <nathan.myers@10gen.com>2017-01-23 17:06:29 -0500
commit94be1956ffa4af698132bd7d65f8b79092566897 (patch)
tree4d081a640df3ba50052a198226a29d4986a18950 /jstests/sharding/movechunk_interrupt_at_primary_stepdown.js
parenteef6335bbc0eedeb6f50120164ca0f198fb94303 (diff)
downloadmongo-94be1956ffa4af698132bd7d65f8b79092566897.tar.gz
SERVER-27550 Delete dead balancer dist lock code
Diffstat (limited to 'jstests/sharding/movechunk_interrupt_at_primary_stepdown.js')
-rw-r--r--jstests/sharding/movechunk_interrupt_at_primary_stepdown.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/jstests/sharding/movechunk_interrupt_at_primary_stepdown.js b/jstests/sharding/movechunk_interrupt_at_primary_stepdown.js
index 5c8ec946907..99c42cb74fc 100644
--- a/jstests/sharding/movechunk_interrupt_at_primary_stepdown.js
+++ b/jstests/sharding/movechunk_interrupt_at_primary_stepdown.js
@@ -66,20 +66,5 @@ load('./jstests/libs/chunk_manipulation_util.js');
assert.eq(0, mongos.getDB('config').chunks.find({shard: st.shard0.shardName}).itcount());
assert.eq(1, mongos.getDB('config').chunks.find({shard: st.shard1.shardName}).itcount());
- // migrationCommitVersionError -- tell the shard that the migration cannot be committed
- // because the collection version epochs do not match, meaning the collection has been dropped
- // since the migration began, which means the Balancer must have lost the distributed lock for
- // a time.
- assert.commandWorked(st.configRS.getPrimary().getDB("admin").runCommand(
- {configureFailPoint: 'migrationCommitVersionError', mode: 'alwaysOn'}));
-
- assert.commandFailedWithCode(
- mongos.getDB("admin").runCommand(
- {moveChunk: coll + "", find: {Key: 0}, to: st.shard0.shardName}),
- ErrorCodes.StaleEpoch);
-
- assert.commandWorked(st.configRS.getPrimary().getDB("admin").runCommand(
- {configureFailPoint: 'migrationCommitVersionError', mode: 'off'}));
-
st.stop();
})();