HBASE-20054 removes the indefinite retry introduced by HBASE-18282
This commit is contained in:
parent
4ddfdaffdc
commit
d6d1e49a75
|
@ -782,20 +782,11 @@ public class ReplicationSourceManager implements ReplicationListener {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
List<String> currentReplicators = null;
|
List<String> currentReplicators = null;
|
||||||
while (currentReplicators == null) {
|
|
||||||
try {
|
try {
|
||||||
currentReplicators = replicationQueues.getListOfReplicators();
|
currentReplicators = replicationQueues.getListOfReplicators();
|
||||||
} catch (ReplicationException e1) {
|
} catch (ReplicationException e) {
|
||||||
LOG.warn("Failure in getListOfReplicators(), will retry later", e1);
|
server.abort("Failed to get all replicators", e);
|
||||||
try {
|
return;
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (currentReplicators == null || currentReplicators.isEmpty()) {
|
if (currentReplicators == null || currentReplicators.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue