HBASE-20054 removes the indefinite retry introduced by HBASE-18282

This commit is contained in:
tedyu 2018-02-23 19:14:04 -08:00
parent 4ddfdaffdc
commit d6d1e49a75
1 changed files with 5 additions and 14 deletions

View File

@ -782,20 +782,11 @@ public class ReplicationSourceManager implements ReplicationListener {
@Override
public void run() {
List<String> currentReplicators = null;
while (currentReplicators == null) {
try {
currentReplicators = replicationQueues.getListOfReplicators();
} catch (ReplicationException e1) {
LOG.warn("Failure in getListOfReplicators(), will retry later", e1);
try {
Thread.sleep(ThreadLocalRandom.current().nextInt(10000));
} catch (InterruptedException e2) {
LOG.warn("Interrupted while waiting for list of replicators to be available, "
+ "will not adopt any abandoned queues", e2);
Thread.currentThread().interrupt();
break;
}
}
try {
currentReplicators = replicationQueues.getListOfReplicators();
} catch (ReplicationException e) {
server.abort("Failed to get all replicators", e);
return;
}
if (currentReplicators == null || currentReplicators.isEmpty()) {
return;