summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Noma <gregory.noma@gmail.com>2020-06-05 09:57:57 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-06-05 14:39:40 +0000
commit3109036c252b774693128e793d6cbede7d5e420b (patch)
tree4eb1b3ab0e7a982ec864192d2426586ffec4d5e5
parentfe30303411c922fe45d7466dd951b4244d79c5b2 (diff)
downloadmongo-3109036c252b774693128e793d6cbede7d5e420b.tar.gz
SERVER-43097 Improve log messaging when index builds get foregrounded because of startup recovery
-rw-r--r--src/mongo/db/repl/oplog.cpp4
-rw-r--r--src/mongo/db/storage/storage_engine_impl.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/repl/oplog.cpp b/src/mongo/db/repl/oplog.cpp
index 0d6e43a2cab..e1e6280d3d0 100644
--- a/src/mongo/db/repl/oplog.cpp
+++ b/src/mongo/db/repl/oplog.cpp
@@ -164,8 +164,8 @@ bool shouldBuildInForeground(OperationContext* opCtx,
const NamespaceString& indexNss,
repl::OplogApplication::Mode mode) {
if (mode == OplogApplication::Mode::kRecovering) {
- LOG(3) << "apply op: building background index " << index
- << " in the foreground because the node is in recovery";
+ log() << "apply op: building background index " << index
+ << " in the foreground because the node is in recovery - see SERVER-43097";
return true;
}
diff --git a/src/mongo/db/storage/storage_engine_impl.cpp b/src/mongo/db/storage/storage_engine_impl.cpp
index 78988117653..a6e0b717d03 100644
--- a/src/mongo/db/storage/storage_engine_impl.cpp
+++ b/src/mongo/db/storage/storage_engine_impl.cpp
@@ -470,8 +470,8 @@ StorageEngineImpl::reconcileCatalogAndIdents(OperationContext* opCtx) {
continue;
}
- log() << "Expected background index build did not complete, rebuilding. "
- "Collection: "
+ log() << "Expected background index build did not complete, rebuilding in "
+ "foreground - see SERVER-43097. Collection: "
<< coll << " Index: " << indexName;
ret.emplace_back(coll.ns(), indexName);
continue;