diff options
author | Simon Gratzer <simon.gratzer@mongodb.com> | 2021-05-11 16:51:47 +0200 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-06-01 14:40:56 +0000 |
commit | c58adbce4f628f0da863bd779ada0512e5b242ec (patch) | |
tree | 029481487cbb315fd35de4eafeb62ae4c885df6c /jstests/sharding/major_version_check.js | |
parent | eb43e20229bdb20abdcaca1d89b965a22ac44584 (diff) | |
download | mongo-c58adbce4f628f0da863bd779ada0512e5b242ec.tar.gz |
SERVER-48653 Return updated ShardVersion in _configsvrCommitChunkSplit to avoid blind metadata refresh (BACKPORT-9049)v4.2.12
Diffstat (limited to 'jstests/sharding/major_version_check.js')
-rw-r--r-- | jstests/sharding/major_version_check.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/jstests/sharding/major_version_check.js b/jstests/sharding/major_version_check.js index 549b92ea47f..bc930a8f117 100644 --- a/jstests/sharding/major_version_check.js +++ b/jstests/sharding/major_version_check.js @@ -100,18 +100,6 @@ printjson(staleMongos.getDB("admin").runCommand({getShardVersion: coll + ""})); - assert.eq(Timestamp(1, 0), - staleMongos.getDB("admin").runCommand({getShardVersion: coll + ""}).version); - - // See if our stale mongos is required to catch up to run a findOne on a new connection - staleMongos = new Mongo(staleMongos.host); - staleMongos.getCollection(coll + "").findOne(); - - printjson(staleMongos.getDB("admin").runCommand({getShardVersion: coll + ""})); - - assert.eq(Timestamp(1, 0), - staleMongos.getDB("admin").runCommand({getShardVersion: coll + ""}).version); - // Run another split on the original chunk, which does not exist anymore (but the stale mongos // thinks it exists). This should fail and cause a refresh on the shard, updating its shard // version. |