diff options
author | Suganthi Mani <suganthi.mani@mongodb.com> | 2020-03-03 01:38:37 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-03 23:55:58 +0000 |
commit | cde28e2ab957bd4a27ef240dfbfeea3cc8a70b74 (patch) | |
tree | 3d8b2f3eb8c6e3f5e0193b0138293757a8120bee /src/mongo/db/catalog/validate_state_test.cpp | |
parent | 4258a3d30c35bbdb1506002557a7ff1e98aef490 (diff) | |
download | mongo-cde28e2ab957bd4a27ef240dfbfeea3cc8a70b74.tar.gz |
SERVER-45001 Enable commit quorum for two phase index builds by default.
Diffstat (limited to 'src/mongo/db/catalog/validate_state_test.cpp')
-rw-r--r-- | src/mongo/db/catalog/validate_state_test.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/mongo/db/catalog/validate_state_test.cpp b/src/mongo/db/catalog/validate_state_test.cpp index 5742e0f782f..2f0d36029e6 100644 --- a/src/mongo/db/catalog/validate_state_test.cpp +++ b/src/mongo/db/catalog/validate_state_test.cpp @@ -144,6 +144,12 @@ TEST_F(ValidateStateTest, UncheckpointedCollectionShouldThrowCursorNotFoundError // Basic test with {background:false} to open cursors against all collection indexes. TEST_F(ValidateStateTest, OpenCursorsOnAllIndexes) { + // Disable index build commit quorum as we don't have support of replication subsystem for + // voting. + ASSERT_OK(ServerParameterSet::getGlobal() + ->getMap() + .find("enableIndexBuildCommitQuorum") + ->second->setFromString("false")); auto opCtx = operationContext(); createCollectionAndPopulateIt(opCtx, kNss); @@ -187,6 +193,13 @@ TEST_F(ValidateStateTest, OpenCursorsOnAllIndexes) { // Open cursors against checkpoint'ed indexes with {background:true}. TEST_F(ValidateStateTest, OpenCursorsOnCheckpointedIndexes) { + // Disable index build commit quorum as we don't have support of replication subsystem for + // voting. + ASSERT_OK(ServerParameterSet::getGlobal() + ->getMap() + .find("enableIndexBuildCommitQuorum") + ->second->setFromString("false")); + auto opCtx = operationContext(); createCollectionAndPopulateIt(opCtx, kNss); @@ -214,6 +227,13 @@ TEST_F(ValidateStateTest, OpenCursorsOnCheckpointedIndexes) { // Only open cursors against indexes that are consistent with the rest of the checkpoint'ed data. TEST_F(ValidateStateTest, OpenCursorsOnConsistentlyCheckpointedIndexes) { + // Disable index build commit quorum as we don't have support of replication subsystem for + // voting. + ASSERT_OK(ServerParameterSet::getGlobal() + ->getMap() + .find("enableIndexBuildCommitQuorum") + ->second->setFromString("false")); + auto opCtx = operationContext(); Collection* coll = createCollectionAndPopulateIt(opCtx, kNss); @@ -257,6 +277,13 @@ TEST_F(ValidateStateTest, OpenCursorsOnConsistentlyCheckpointedIndexes) { // Indexes in the checkpoint that were dropped in the present should not have cursors opened against // them. TEST_F(ValidateStateTest, CursorsAreNotOpenedAgainstCheckpointedIndexesThatWereLaterDropped) { + // Disable index build commit quorum as we don't have support of replication subsystem for + // voting. + ASSERT_OK(ServerParameterSet::getGlobal() + ->getMap() + .find("enableIndexBuildCommitQuorum") + ->second->setFromString("false")); + auto opCtx = operationContext(); createCollectionAndPopulateIt(opCtx, kNss); |