summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Zhang <jason.zhang@mongodb.com>2020-09-03 00:31:30 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-09-04 00:42:40 +0000
commit7e250e257fecf8809222fe235d0d6fc82f18667b (patch)
treef2a37d602802d80c48152c8645125ec3fffb98f6
parent8160b517bd20397a68384004cac3a513776fae73 (diff)
downloadmongo-7e250e257fecf8809222fe235d0d6fc82f18667b.tar.gz
SERVER-49393 KeysCollectionManager should not silently ignore refresh failures
-rw-r--r--src/mongo/db/keys_collection_manager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/keys_collection_manager.cpp b/src/mongo/db/keys_collection_manager.cpp
index ff11c1779c3..4e647a3b925 100644
--- a/src/mongo/db/keys_collection_manager.cpp
+++ b/src/mongo/db/keys_collection_manager.cpp
@@ -264,6 +264,10 @@ void KeysCollectionManager::PeriodicRunner::_doPeriodicRefresh(ServiceContext* s
if (nextWakeup > kMaxRefreshWaitTime) {
nextWakeup = kMaxRefreshWaitTime;
}
+ LOGV2(4939300,
+ "Failed to refresh key cache",
+ "error"_attr = latestKeyStatusWith.getStatus(),
+ "nextWakeup"_attr = nextWakeup);
}
// Notify all waiters that the refresh has finished and they can move on