}
LOG.info("User registered at the master " + mMasterAddress + " got UserId " + mUserId);
mConnected = true;
return;
} while (retry.attemptRetry() && !mIsShutdown);
// Reaching here indicates that we did not successfully connect.
throw new IOException("Failed to connect to master " + mMasterAddress + " after "
+ (retry.getRetryCount()) + " attempts", lastException);
}