diff options
author | Jason Zhang <jason.zhang@mongodb.com> | 2020-09-17 21:42:04 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-09-18 11:51:41 +0000 |
commit | eaa9b518099c250cbb3083ed84636922a5b29feb (patch) | |
tree | f9e2b14a233ed75eddb4181fae53c5f2ec6f7591 /jstests | |
parent | 32b920a09a23206a9c6ecb53a6b56b87333b974f (diff) | |
download | mongo-eaa9b518099c250cbb3083ed84636922a5b29feb.tar.gz |
SERVER-50900 Disable PeriodicShardedIndexConsistencyChecker for cursor_valid_after_shard_stepdown.js
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/sharding/cursor_valid_after_shard_stepdown.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/jstests/sharding/cursor_valid_after_shard_stepdown.js b/jstests/sharding/cursor_valid_after_shard_stepdown.js index c96ce21ab3d..574eb603e54 100644 --- a/jstests/sharding/cursor_valid_after_shard_stepdown.js +++ b/jstests/sharding/cursor_valid_after_shard_stepdown.js @@ -9,6 +9,12 @@ TestData.skipCheckOrphans = true; var st = new ShardingTest({shards: 1, rs: {nodes: 2}}); +// This test expects the shard version after step down to be UNKNOWN. Disable checking for index +// consistency to ensure that the config server doesn't trigger a StaleShardVersion exception on +// shard0 and cause it to refresh its sharding metadata. +st._configServers.forEach( + config => config.adminCommand({setParameter: 1, enableShardedIndexConsistencyCheck: false})); + assert.commandWorked(st.s0.adminCommand({enablesharding: 'TestDB'})); st.ensurePrimaryShard('TestDB', st.shard0.shardName); assert.commandWorked(st.s0.adminCommand({shardcollection: 'TestDB.TestColl', key: {x: 1}})); |