diff options
author | Esha Maharishi <esha.maharishi@mongodb.com> | 2017-04-17 15:40:56 -0400 |
---|---|---|
committer | Esha Maharishi <esha.maharishi@mongodb.com> | 2017-04-17 15:40:56 -0400 |
commit | 4185dafcbe40b7c8fa194ee0c36422293f58be7a (patch) | |
tree | e80e89a50c29deef2aa9effa67db27ee48e9d1ca /jstests/concurrency | |
parent | 92eaa6337842a52623e5489058e8417e857615cc (diff) | |
download | mongo-4185dafcbe40b7c8fa194ee0c36422293f58be7a.tar.gz |
SERVER-28792 make dropIndexes unversioned again
Diffstat (limited to 'jstests/concurrency')
-rw-r--r-- | jstests/concurrency/fsm_workloads/sharded_moveChunk_drop_shard_key_index.js | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/jstests/concurrency/fsm_workloads/sharded_moveChunk_drop_shard_key_index.js b/jstests/concurrency/fsm_workloads/sharded_moveChunk_drop_shard_key_index.js index e3c348fb099..d96fdd60cb0 100644 --- a/jstests/concurrency/fsm_workloads/sharded_moveChunk_drop_shard_key_index.js +++ b/jstests/concurrency/fsm_workloads/sharded_moveChunk_drop_shard_key_index.js @@ -39,14 +39,7 @@ var $config = (function() { dropIndex: function dropIndex(db, collName) { // We don't assert that the command succeeded when dropping an index because it's // possible another thread has already dropped this index. - try { - db[collName].dropIndex(this.shardKey); - } catch (e) { - // Ignore stale shardVersion errors. - if (e.message.indexOf("stale config") < 0) { - throw e; - } - } + db[collName].dropIndex(this.shardKey); // Re-create the index that was dropped. assertAlways.commandWorked(db[collName].createIndex(this.shardKey)); |