diff options
author | Gregory Noma <gregory.noma@gmail.com> | 2020-06-15 10:29:49 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-06-15 14:47:37 +0000 |
commit | d74e05232c7924e929a94301850b3408395d710f (patch) | |
tree | 5e46c431f70ee643092900976f24e6ab9a852a5e /src | |
parent | ac7e890e9211db9566c0d53aead07de161d6d5ad (diff) | |
download | mongo-d74e05232c7924e929a94301850b3408395d710f.tar.gz |
SERVER-43097 Improve log messaging when index builds get foregrounded because of startup recovery
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/repl/oplog.cpp | 4 | ||||
-rw-r--r-- | src/mongo/db/storage/kv/kv_storage_engine.cpp | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/repl/oplog.cpp b/src/mongo/db/repl/oplog.cpp index ce608907461..3694c9c73d2 100644 --- a/src/mongo/db/repl/oplog.cpp +++ b/src/mongo/db/repl/oplog.cpp @@ -219,8 +219,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/kv/kv_storage_engine.cpp b/src/mongo/db/storage/kv/kv_storage_engine.cpp index c9dd5b15457..1917e3b4807 100644 --- a/src/mongo/db/storage/kv/kv_storage_engine.cpp +++ b/src/mongo/db/storage/kv/kv_storage_engine.cpp @@ -419,7 +419,8 @@ KVStorageEngine::reconcileCatalogAndIdents(OperationContext* opCtx) { // will return the index to be rebuilt. if (indexMetaData.isBackgroundSecondaryBuild && (!foundIdent || !indexMetaData.ready)) { log() - << "Expected background index build did not complete, rebuilding. Collection: " + << "Expected background index build did not complete, rebuilding in foreground" + " - see SERVER-43097. Collection: " << coll << " Index: " << indexName; ret.emplace_back(coll, indexName); continue; |