diff options
Diffstat (limited to 'src/mongo/s/catalog/sharding_catalog_split_chunk_test.cpp')
-rw-r--r-- | src/mongo/s/catalog/sharding_catalog_split_chunk_test.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mongo/s/catalog/sharding_catalog_split_chunk_test.cpp b/src/mongo/s/catalog/sharding_catalog_split_chunk_test.cpp index 8373636edad..b3b8b02780b 100644 --- a/src/mongo/s/catalog/sharding_catalog_split_chunk_test.cpp +++ b/src/mongo/s/catalog/sharding_catalog_split_chunk_test.cpp @@ -55,7 +55,7 @@ TEST_F(SplitChunkTest, SplitExistingChunkCorrectlyShouldSucceed) { auto chunkSplitPoint = BSON("a" << 5); std::vector<BSONObj> splitPoints{chunkSplitPoint}; - setupChunks({chunk}); + setupChunks({chunk}).transitional_ignore(); ASSERT_OK(catalogManager()->commitChunkSplit(operationContext(), NamespaceString("TestDB.TestColl"), @@ -104,7 +104,7 @@ TEST_F(SplitChunkTest, MultipleSplitsOnExistingChunkShouldSucceed) { auto chunkSplitPoint2 = BSON("a" << 7); std::vector<BSONObj> splitPoints{chunkSplitPoint, chunkSplitPoint2}; - setupChunks({chunk}); + setupChunks({chunk}).transitional_ignore(); ASSERT_OK(catalogManager()->commitChunkSplit(operationContext(), NamespaceString("TestDB.TestColl"), @@ -174,7 +174,7 @@ TEST_F(SplitChunkTest, NewSplitShouldClaimHighestVersion) { chunk2.setMin(BSON("a" << 10)); chunk2.setMax(BSON("a" << 20)); - setupChunks({chunk, chunk2}); + setupChunks({chunk, chunk2}).transitional_ignore(); ASSERT_OK(catalogManager()->commitChunkSplit(operationContext(), NamespaceString("TestDB.TestColl"), @@ -223,7 +223,7 @@ TEST_F(SplitChunkTest, PreConditionFailErrors) { auto chunkSplitPoint = BSON("a" << 5); splitPoints.push_back(chunkSplitPoint); - setupChunks({chunk}); + setupChunks({chunk}).transitional_ignore(); auto splitStatus = catalogManager()->commitChunkSplit(operationContext(), NamespaceString("TestDB.TestColl"), @@ -249,7 +249,7 @@ TEST_F(SplitChunkTest, NonExisingNamespaceErrors) { std::vector<BSONObj> splitPoints{BSON("a" << 5)}; - setupChunks({chunk}); + setupChunks({chunk}).transitional_ignore(); auto splitStatus = catalogManager()->commitChunkSplit(operationContext(), NamespaceString("TestDB.NonExistingColl"), @@ -275,7 +275,7 @@ TEST_F(SplitChunkTest, NonMatchingEpochsOfChunkAndRequestErrors) { std::vector<BSONObj> splitPoints{BSON("a" << 5)}; - setupChunks({chunk}); + setupChunks({chunk}).transitional_ignore(); auto splitStatus = catalogManager()->commitChunkSplit(operationContext(), NamespaceString("TestDB.TestColl"), @@ -301,7 +301,7 @@ TEST_F(SplitChunkTest, SplitPointsOutOfOrderShouldFail) { std::vector<BSONObj> splitPoints{BSON("a" << 5), BSON("a" << 4)}; - setupChunks({chunk}); + setupChunks({chunk}).transitional_ignore(); auto splitStatus = catalogManager()->commitChunkSplit(operationContext(), NamespaceString("TestDB.TestColl"), @@ -327,7 +327,7 @@ TEST_F(SplitChunkTest, SplitPointsOutOfRangeAtMinShouldFail) { std::vector<BSONObj> splitPoints{BSON("a" << 0), BSON("a" << 5)}; - setupChunks({chunk}); + setupChunks({chunk}).transitional_ignore(); auto splitStatus = catalogManager()->commitChunkSplit(operationContext(), NamespaceString("TestDB.TestColl"), @@ -353,7 +353,7 @@ TEST_F(SplitChunkTest, SplitPointsOutOfRangeAtMaxShouldFail) { std::vector<BSONObj> splitPoints{BSON("a" << 5), BSON("a" << 15)}; - setupChunks({chunk}); + setupChunks({chunk}).transitional_ignore(); auto splitStatus = catalogManager()->commitChunkSplit(operationContext(), NamespaceString("TestDB.TestColl"), |