diff options
author | Samy Lanka <samy.lanka@mongodb.com> | 2020-08-11 03:40:53 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-08-11 21:04:33 +0000 |
commit | 2a5a3b729c592dd9e8b1003f4c8cf4c9a549bd8f (patch) | |
tree | 2a6b494e2eead1ed5bedbf1c6819b4b9a3c46b22 /src/mongo/db/index_builds_coordinator_mongod.cpp | |
parent | 39d81ddf26ec7f971768ca6998b972ed70e7093d (diff) | |
download | mongo-2a5a3b729c592dd9e8b1003f4c8cf4c9a549bd8f.tar.gz |
SERVER-48417 Test that multi-node sets resume index builds from the drain writes phase
Diffstat (limited to 'src/mongo/db/index_builds_coordinator_mongod.cpp')
-rw-r--r-- | src/mongo/db/index_builds_coordinator_mongod.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/index_builds_coordinator_mongod.cpp b/src/mongo/db/index_builds_coordinator_mongod.cpp index e6d7c2544e0..0d08ee0e8de 100644 --- a/src/mongo/db/index_builds_coordinator_mongod.cpp +++ b/src/mongo/db/index_builds_coordinator_mongod.cpp @@ -58,6 +58,7 @@ namespace mongo { namespace { MONGO_FAIL_POINT_DEFINE(hangBeforeInitializingIndexBuild); +MONGO_FAIL_POINT_DEFINE(hangIndexBuildAfterSignalPrimaryForCommitReadiness); const StringData kMaxNumActiveUserIndexBuildsServerParameterName = "maxNumActiveUserIndexBuilds"_sd; @@ -635,6 +636,11 @@ void IndexBuildsCoordinatorMongod::_signalPrimaryForCommitReadiness( break; } } + + if (MONGO_unlikely(hangIndexBuildAfterSignalPrimaryForCommitReadiness.shouldFail())) { + LOGV2(4841707, "Hanging index build after signaling the primary for commit readiness"); + hangIndexBuildAfterSignalPrimaryForCommitReadiness.pauseWhileSet(opCtx); + } return; } |