summaryrefslogtreecommitdiff
path: root/jstests/concurrency
diff options
context:
space:
mode:
authorEsha Maharishi <esha.maharishi@mongodb.com>2017-04-17 15:40:56 -0400
committerEsha Maharishi <esha.maharishi@mongodb.com>2017-04-17 15:40:56 -0400
commit4185dafcbe40b7c8fa194ee0c36422293f58be7a (patch)
treee80e89a50c29deef2aa9effa67db27ee48e9d1ca /jstests/concurrency
parent92eaa6337842a52623e5489058e8417e857615cc (diff)
downloadmongo-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.js9
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));