diff options
author | Allison Easton <allison.easton@mongodb.com> | 2021-10-08 09:58:23 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-08 10:22:09 +0000 |
commit | 8679a54bd8780fdbe1cb6a052f70a494cd4205e5 (patch) | |
tree | 658ccb979bfe0726b8985ed1879932c54265ce00 /src/mongo/s/catalog_cache_refresh_test.cpp | |
parent | ad809cbc37db74ac0c3e1f95456ccdd38e1a7486 (diff) | |
download | mongo-8679a54bd8780fdbe1cb6a052f70a494cd4205e5.tar.gz |
SERVER-60378 Rewrite some sharding tests to avoid using chunk versions with Timestamp(0, 0)
Diffstat (limited to 'src/mongo/s/catalog_cache_refresh_test.cpp')
-rw-r--r-- | src/mongo/s/catalog_cache_refresh_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/s/catalog_cache_refresh_test.cpp b/src/mongo/s/catalog_cache_refresh_test.cpp index a6a75a2c696..6af4c573955 100644 --- a/src/mongo/s/catalog_cache_refresh_test.cpp +++ b/src/mongo/s/catalog_cache_refresh_test.cpp @@ -60,7 +60,7 @@ protected: void expectGetDatabase() { expectFindSendBSONObjVector(kConfigHostAndPort, [&]() { DatabaseType db( - kNss.db().toString(), {"0"}, true, DatabaseVersion(UUID::gen(), Timestamp())); + kNss.db().toString(), {"0"}, true, DatabaseVersion(UUID::gen(), Timestamp(1, 1))); return std::vector<BSONObj>{db.toBSON()}; }()); } @@ -328,7 +328,7 @@ TEST_F(CatalogCacheRefreshTest, ChunksBSONCorrupted) { const auto chunk1 = ChunkType(coll.getUuid(), {shardKeyPattern.getKeyPattern().globalMin(), BSON("_id" << 0)}, - ChunkVersion(1, 0, epoch, Timestamp()), + ChunkVersion(1, 0, epoch, Timestamp(1, 1)), {"0"}); return std::vector<BSONObj>{/* collection */ coll.toBSON(), @@ -407,7 +407,7 @@ TEST_F(CatalogCacheRefreshTest, FullLoadMissingChunkWithLowestVersion) { TEST_F(CatalogCacheRefreshTest, FullLoadMissingChunkWithHighestVersion) { const OID epoch = OID::gen(); const UUID uuid = UUID::gen(); - const Timestamp timestamp; + const Timestamp timestamp(1, 1); const ShardKeyPattern shardKeyPattern(BSON("_id" << 1)); auto future = scheduleRoutingInfoUnforcedRefresh(kNss); |