fdbserver/ClusterController.actor.cpp
// Returns true when the cluster controller should trigger a recovery due to degraded servers used in the
// transaction system in the primary data center.
Returns true when the cluster controller should trigger a recovery due to degraded servers used in the
transaction system in the primary data center.
Returns true when the cluster controller should trigger a recovery due to degraded servers used in the transaction system in the primary data center .
bool shouldTriggerRecoveryDueToDegradedServers() {
		if (degradedServers.size() > SERVER_KNOBS->CC_MAX_EXCLUSION_DUE_TO_HEALTH) {
			return false;
		}
		if (db.serverInfo->get().recoveryState < RecoveryState::ACCEPTING_COMMITS) {
			return false;
		}
		if (id_worker[clusterControllerProcessId].priorityInfo.isExcluded) {
			return false;
		}
		return transactionSystemContainsDegradedServers();
	}
bool shouldTriggerRecoveryDueToDegradedServers ( ) { if ( degradedServers . size ( ) > SERVER_KNOBS -> CC_MAX_EXCLUSION_DUE_TO_HEALTH ) { return false ; } if ( db . serverInfo -> get ( ) . recoveryState < RecoveryState :: ACCEPTING_COMMITS ) { return false ; } if ( id_worker [ clusterControllerProcessId ] . priorityInfo . isExcluded ) { return false ; } return transactionSystemContainsDegradedServers ( ) ; }
Returns true when the cluster controller should trigger a recovery due to degraded servers used in the
transaction system in the primary data center.
Returns true when the cluster controller should trigger a recovery due to degraded servers used in the transaction system in the primary data center .
// Do not trigger recovery if the cluster controller is excluded, since the master will change // anyways once the cluster controller is moved