diff options
Diffstat (limited to 'src/mongo/db/process_health/fault_manager.cpp')
-rw-r--r-- | src/mongo/db/process_health/fault_manager.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/process_health/fault_manager.cpp b/src/mongo/db/process_health/fault_manager.cpp index c237e27773b..86d7b4406bc 100644 --- a/src/mongo/db/process_health/fault_manager.cpp +++ b/src/mongo/db/process_health/fault_manager.cpp @@ -229,7 +229,10 @@ void FaultManager::healthCheck() { // Start checks outside of lock. auto token = _managerShuttingDownCancellationSource.token(); for (auto observer : observers) { - observer->periodicCheck(*this, _taskExecutor, token); + // TODO: fix bug where health observer is turned off which in transient fault state + if (_config->getHealthObserverIntensity(observer->getType()) != + HealthObserverIntensityEnum::kOff) + observer->periodicCheck(*this, _taskExecutor, token); } // Garbage collect all resolved fault facets. |