diff options
author | Yu Jin Kang Park <yujin.kang@mongodb.com> | 2023-05-17 12:31:11 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-17 13:43:06 +0000 |
commit | a4cffa9d6a2c902101f19b3b54af2714b0f4af4a (patch) | |
tree | 4651f38a404eb0c68065ecb206cde66516436186 /src/mongo/db/index_builds_coordinator.cpp | |
parent | d2f241ddb0494d079b8b2b282de4333b666da805 (diff) | |
download | mongo-a4cffa9d6a2c902101f19b3b54af2714b0f4af4a.tar.gz |
SERVER-77214 Add buildUUID, db, and collectionUUID to index build data corruption log message
Diffstat (limited to 'src/mongo/db/index_builds_coordinator.cpp')
-rw-r--r-- | src/mongo/db/index_builds_coordinator.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mongo/db/index_builds_coordinator.cpp b/src/mongo/db/index_builds_coordinator.cpp index 38b1da5703f..4961d533f68 100644 --- a/src/mongo/db/index_builds_coordinator.cpp +++ b/src/mongo/db/index_builds_coordinator.cpp @@ -2632,7 +2632,12 @@ void IndexBuildsCoordinator::_cleanUpAfterFailure(OperationContext* opCtx, if (status.code() == ErrorCodes::DataCorruptionDetected) { indexBuildsSSS.failedDueToDataCorruption.addAndFetch(1); - LOGV2(7333600, "Index build: data corruption detected", "status"_attr = status); + LOGV2(7333600, + "Index build: data corruption detected", + "buildUUID"_attr = replState->buildUUID, + logAttrs(replState->dbName), + "collectionUUID"_attr = replState->collectionUUID, + "error"_attr = status); } if (IndexBuildProtocol::kSinglePhase == replState->protocol) { |