diff options
author | Esha Maharishi <esha.maharishi@mongodb.com> | 2017-11-29 15:57:41 -0500 |
---|---|---|
committer | Esha Maharishi <esha.maharishi@mongodb.com> | 2017-12-05 13:35:07 -0500 |
commit | 84b68e8459df1b795fa25eeaee05b76967eb9406 (patch) | |
tree | 0803d8d7f9bca57897dbf9754016cf2e92acc18e /jstests/sharding | |
parent | 40dc86136f85f88e1782a1c65b49bfba02757009 (diff) | |
download | mongo-84b68e8459df1b795fa25eeaee05b76967eb9406.tar.gz |
SERVER-31627 ShardingTest.checkUUIDsConsistentAcrossCluster can fail to see collection in config.cache.collections
Diffstat (limited to 'jstests/sharding')
4 files changed, 8 insertions, 8 deletions
diff --git a/jstests/sharding/dump_coll_metadata.js b/jstests/sharding/dump_coll_metadata.js index 9b38a3c416c..30726f4746d 100644 --- a/jstests/sharding/dump_coll_metadata.js +++ b/jstests/sharding/dump_coll_metadata.js @@ -37,7 +37,7 @@ // cause the shard to refresh. assert.commandWorked(admin.runCommand({split: coll + "", middle: {_id: 0}})); assert.commandWorked( - st.shard0.getDB('admin').runCommand({forceRoutingTableRefresh: coll + ""})); + st.shard0.getDB('admin').runCommand({_flushRoutingTableCacheUpdates: coll + ""})); assert.commandWorked(shardAdmin.runCommand({getShardVersion: coll + ""})); printjson(shardAdmin.runCommand({getShardVersion: coll + "", fullMetadata: true})); diff --git a/jstests/sharding/safe_secondary_reads_drop_recreate.js b/jstests/sharding/safe_secondary_reads_drop_recreate.js index 245a2bf5a30..a289eb6e363 100644 --- a/jstests/sharding/safe_secondary_reads_drop_recreate.js +++ b/jstests/sharding/safe_secondary_reads_drop_recreate.js @@ -61,6 +61,7 @@ _configsvrShardCollection: {skip: "primary only"}, _configsvrSetFeatureCompatibilityVersion: {skip: "primary only"}, _configsvrUpdateZoneKeyRange: {skip: "primary only"}, + _flushRoutingTableCacheUpdates: {skip: "does not return user data"}, _getUserCacheGeneration: {skip: "does not return user data"}, _hashBSONElement: {skip: "does not return user data"}, _isSelf: {skip: "does not return user data"}, @@ -173,7 +174,6 @@ findAndModify: {skip: "primary only"}, flushRouterConfig: {skip: "does not return user data"}, forceerror: {skip: "does not return user data"}, - forceRoutingTableRefresh: {skip: "does not return user data"}, fsync: {skip: "does not return user data"}, fsyncUnlock: {skip: "does not return user data"}, geoNear: { @@ -329,8 +329,8 @@ // Ensure the latest version changes have been persisted and propagate to the secondary // before we target it with versioned commands. - assert.commandWorked( - st.rs0.getPrimary().getDB('admin').runCommand({forceRoutingTableRefresh: nss})); + assert.commandWorked(st.rs0.getPrimary().getDB('admin').runCommand( + {_flushRoutingTableCacheUpdates: nss})); st.rs0.awaitReplication(); let res = staleMongos.getDB(db).runCommand(Object.assign( @@ -393,8 +393,8 @@ // Ensure the latest version changes have been persisted and propagate to the secondary // before we target it with versioned commands. - assert.commandWorked( - st.rs0.getPrimary().getDB('admin').runCommand({forceRoutingTableRefresh: nss})); + assert.commandWorked(st.rs0.getPrimary().getDB('admin').runCommand( + {_flushRoutingTableCacheUpdates: nss})); st.rs0.awaitReplication(); let res = staleMongos.getDB(db).runCommand(Object.assign( diff --git a/jstests/sharding/safe_secondary_reads_single_migration_suspend_range_deletion.js b/jstests/sharding/safe_secondary_reads_single_migration_suspend_range_deletion.js index 41cd6593530..377abed53e0 100644 --- a/jstests/sharding/safe_secondary_reads_single_migration_suspend_range_deletion.js +++ b/jstests/sharding/safe_secondary_reads_single_migration_suspend_range_deletion.js @@ -68,6 +68,7 @@ _configsvrShardCollection: {skip: "primary only"}, _configsvrSetFeatureCompatibilityVersion: {skip: "primary only"}, _configsvrUpdateZoneKeyRange: {skip: "primary only"}, + _flushRoutingTableCacheUpdates: {skip: "does not return user data"}, _getUserCacheGeneration: {skip: "does not return user data"}, _hashBSONElement: {skip: "does not return user data"}, _isSelf: {skip: "does not return user data"}, @@ -203,7 +204,6 @@ findAndModify: {skip: "primary only"}, flushRouterConfig: {skip: "does not return user data"}, forceerror: {skip: "does not return user data"}, - forceRoutingTableRefresh: {skip: "does not return user data"}, fsync: {skip: "does not return user data"}, fsyncUnlock: {skip: "does not return user data"}, geoNear: { diff --git a/jstests/sharding/safe_secondary_reads_single_migration_waitForDelete.js b/jstests/sharding/safe_secondary_reads_single_migration_waitForDelete.js index 28640f5efaf..8d093ce7c51 100644 --- a/jstests/sharding/safe_secondary_reads_single_migration_waitForDelete.js +++ b/jstests/sharding/safe_secondary_reads_single_migration_waitForDelete.js @@ -61,6 +61,7 @@ _configsvrShardCollection: {skip: "primary only"}, _configsvrSetFeatureCompatibilityVersion: {skip: "primary only"}, _configsvrUpdateZoneKeyRange: {skip: "primary only"}, + _flushRoutingTableCacheUpdates: {skip: "does not return user data"}, _getUserCacheGeneration: {skip: "does not return user data"}, _hashBSONElement: {skip: "does not return user data"}, _isSelf: {skip: "does not return user data"}, @@ -176,7 +177,6 @@ findAndModify: {skip: "primary only"}, flushRouterConfig: {skip: "does not return user data"}, forceerror: {skip: "does not return user data"}, - forceRoutingTableRefresh: {skip: "does not return user data"}, fsync: {skip: "does not return user data"}, fsyncUnlock: {skip: "does not return user data"}, geoNear: { |