HBASE-17639 Do not stop server if ReplicationSourceManager's waitUntilCanBePushed throws InterruptedException

This commit is contained in:
Phil Yang 2017-02-13 19:03:27 +08:00
parent 024ae356ac
commit b2217d1d8f
1 changed files with 4 additions and 1 deletions

View File

@ -615,9 +615,12 @@ public class ReplicationSource extends Thread implements ReplicationSourceInterf
if (!canSkipWaitingSet.getUnchecked(key)) {
try {
manager.waitUntilCanBePushed(Bytes.toBytes(key), seq, actualPeerId);
} catch (Exception e) {
} catch (IOException e) {
LOG.error("waitUntilCanBePushed fail", e);
stopper.stop("waitUntilCanBePushed fail");
} catch (InterruptedException e) {
LOG.warn("waitUntilCanBePushed interrupted", e);
Thread.currentThread().interrupt();
}
canSkipWaitingSet.put(key, true);
}