diff --git a/fdbserver/ClusterController.actor.cpp b/fdbserver/ClusterController.actor.cpp index f8c9bad538c..86121266f67 100644 --- a/fdbserver/ClusterController.actor.cpp +++ b/fdbserver/ClusterController.actor.cpp @@ -2861,6 +2861,11 @@ class ClusterControllerData { // Returns true if remote DC is healthy and can failover to. bool remoteDCIsHealthy() { + // Ignore remote DC health if worker health monitor is disabled. + if (!SERVER_KNOBS->CC_ENABLE_WORKER_HEALTH_MONITOR) { + return true; + } + // When we just start, we ignore any remote DC health info since the current CC may be elected at wrong DC due // to that all the processes are still starting. if (machineStartTime() == 0) {