}
private void startRepairLoop() {
isActive = true;
if (scheduleCompareAndSet()) {
retryExecutor.execute(new ErrorLoggingRunnable(new Runnable() {
@Override
public void run() {
try {
synchronized (transitionLock) {
// Only repair if we are still in the same state