summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorSergi Mateo Bellido <sergi.mateo-bellido@mongodb.com>2021-02-04 12:26:31 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-02-05 11:48:08 +0000
commita967fd0ae4deb4888efa3185a8df77d869562717 (patch)
treecc7cd35620c31e6027ffe6324fc211051ff693d2 /jstests
parentce20c665a0ce3ce04c29d3af89f09f503051e4ca (diff)
downloadmongo-a967fd0ae4deb4888efa3185a8df77d869562717.tar.gz
SERVER-54158 Missing shard metadata refresh from the CS in coll_timestamp_test.js
Diffstat (limited to 'jstests')
-rw-r--r--jstests/sharding/coll_timestamp_test.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/jstests/sharding/coll_timestamp_test.js b/jstests/sharding/coll_timestamp_test.js
index 7bac9f1fdf5..c6e0432f670 100644
--- a/jstests/sharding/coll_timestamp_test.js
+++ b/jstests/sharding/coll_timestamp_test.js
@@ -16,6 +16,8 @@ load("jstests/sharding/libs/find_chunks_util.js");
function checkTimestampConsistencyInPersistentMetadata(nss, timestampInConfig) {
// Checking consistency on local shard collection: config.cache.collections
+ st.shard0.adminCommand({_flushRoutingTableCacheUpdates: nss, syncFromConfig: true});
+
let timestampInShard =
st.shard0.getDB('config').cache.collections.findOne({_id: nss}).timestamp;
assert.neq(null, timestampInShard);