summaryrefslogtreecommitdiff
path: root/jstests/sharding/rename_sharded.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/rename_sharded.js')
-rw-r--r--jstests/sharding/rename_sharded.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/jstests/sharding/rename_sharded.js b/jstests/sharding/rename_sharded.js
index 23dd313393b..87f98dee46b 100644
--- a/jstests/sharding/rename_sharded.js
+++ b/jstests/sharding/rename_sharded.js
@@ -49,16 +49,6 @@ function testRename(st, dbName, toNs, dropTarget, mustFail) {
const toColl = mongos.getCollection(toNs);
assert.eq(toColl.find({x: 0}).itcount(), 1, 'Expected exactly one document on the shard');
assert.eq(toColl.find({x: 2}).itcount(), 1, 'Expected exactly one document on the shard');
-
- // Validate the correctness of the collections metadata in the catalog cache on shards
- for (let db of [st.shard0.getDB('config'), st.shard1.getDB('config')]) {
- // Validate that the source collection metadata has been cleaned up
- assert.eq(db['cache.collections'].countDocuments({_id: fromNs}), 0);
-
- // Validate that the target collection metadata has been downloaded
- assert.eq(db['cache.collections'].countDocuments({_id: toNs}), 1);
- assert(db['cache.chunks.' + toNs].exists());
- }
}
// Never use the third shard, but leave it in order to indirectly check that rename participants