summaryrefslogtreecommitdiff
path: root/jstests/sharding/migration_failure.js
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2014-07-21 14:05:24 -0400
committerRandolph Tan <randolph@10gen.com>2014-08-06 13:53:08 -0400
commitb6f7a03697f160c965b467e8962f7f29934935c4 (patch)
treeeb8d0fddace79ecc4eb4fec3bb7283f453509ab7 /jstests/sharding/migration_failure.js
parent9593c2ee9546f2d9ea2d24ff56743a70b4af2a01 (diff)
downloadmongo-b6f7a03697f160c965b467e8962f7f29934935c4.tar.gz
SERVER-14632 Chunk version epoch not parsed on applyOps error handling
Diffstat (limited to 'jstests/sharding/migration_failure.js')
-rw-r--r--jstests/sharding/migration_failure.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/jstests/sharding/migration_failure.js b/jstests/sharding/migration_failure.js
index 236a451f8c5..2732b84bd57 100644
--- a/jstests/sharding/migration_failure.js
+++ b/jstests/sharding/migration_failure.js
@@ -59,6 +59,24 @@ assert.commandWorked(
st.shard0.getDB("admin").runCommand({
configureFailPoint : 'failMigrationConfigWritePrepare', mode : 'off' }));
+assert.commandWorked(
+ st.shard0.getDB("admin").runCommand({
+ configureFailPoint : 'failMigrationApplyOps', mode : 'alwaysOn' }));
+
+version = st.shard0.getDB("admin").runCommand({ getShardVersion : coll.toString() });
+
+assert.commandWorked( admin.runCommand({ moveChunk : coll + "",
+ find : { _id : 0 },
+ to : shards[1]._id }) );
+
+failVersion = st.shard0.getDB("admin").runCommand({ getShardVersion : coll.toString() });
+
+assert.neq(version.global, failVersion.global);
+
+assert.commandWorked(
+ st.shard0.getDB("admin").runCommand({
+ configureFailPoint : 'failMigrationApplyOps', mode : 'off' }));
+
jsTest.log( "DONE!" );
st.stop();