diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2019-05-07 08:50:35 -0400 |
---|---|---|
committer | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2019-05-08 09:12:16 -0400 |
commit | 29db842551e2c032567406be94ba6575b5f997e2 (patch) | |
tree | 9261d1e7652202ee8d3cc719e6ff36b76f9b5482 /src/mongo/db/commands/fsync.cpp | |
parent | 89fb6dcc3e87fca01bbea2a7662d33f6f2c4702d (diff) | |
download | mongo-29db842551e2c032567406be94ba6575b5f997e2.tar.gz |
SERVER-14396 Issue periodic warnings to the log while instance is locked
Diffstat (limited to 'src/mongo/db/commands/fsync.cpp')
-rw-r--r-- | src/mongo/db/commands/fsync.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/commands/fsync.cpp b/src/mongo/db/commands/fsync.cpp index e1ca6e4cc1e..abc04dfd2e3 100644 --- a/src/mongo/db/commands/fsync.cpp +++ b/src/mongo/db/commands/fsync.cpp @@ -387,7 +387,9 @@ void FSyncLockThread::run() { fsyncCmd.acquireFsyncLockSyncCV.notify_one(); while (fsyncCmd.getLockCount_inLock() > 0) { - fsyncCmd.releaseFsyncLockSyncCV.wait(lk); + warning() << "WARNING: instance is locked, blocking all writes. The fsync command has " + "finished execution, remember to unlock the instance using fsyncUnlock()."; + fsyncCmd.releaseFsyncLockSyncCV.wait_for(lk, Seconds(60).toSystemDuration()); } if (successfulFsyncLock) { |