HBASE-9157: ZKUtil.blockUntilAvailable loops forever with non-recoverable errors
This commit is contained in:
parent
c68c17ffec
commit
e6248bd45d
|
@ -1857,6 +1857,11 @@ public class ZKUtil {
|
|||
try {
|
||||
data = ZKUtil.getData(zkw, znode);
|
||||
} catch(KeeperException e) {
|
||||
if (e instanceof KeeperException.SessionExpiredException
|
||||
|| e instanceof KeeperException.AuthFailedException) {
|
||||
// non-recoverable errors so stop here
|
||||
throw new InterruptedException("interrupted due to " + e);
|
||||
}
|
||||
LOG.warn("Unexpected exception handling blockUntilAvailable", e);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue