import com.google.common.base.Stopwatch;
import java.util.concurrent.TimeUnit;
import org.opendaylight.controller.cluster.raft.RaftActorContext;
+import org.opendaylight.controller.cluster.raft.RaftState;
import org.opendaylight.controller.cluster.raft.base.messages.IsolatedLeaderCheck;
/**
if (originalMessage instanceof IsolatedLeaderCheck) {
if (isLeaderIsolated()) {
LOG.warn("{}: At least {} followers need to be active, Switching {} from Leader to IsolatedLeader",
- context.getId(), minIsolatedLeaderPeerCount, leaderId);
+ context.getId(), getMinIsolatedLeaderPeerCount(), leaderId);
- return switchBehavior(new IsolatedLeader(context));
+ return internalSwitchBehavior(RaftState.IsolatedLeader);
}
}