HBASE-26840 Fix NPE in the retry of logroller (#4224)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
parent
920cf9d7d4
commit
31cb0b809c
|
@ -217,8 +217,7 @@ public abstract class AbstractWALRoller<T extends Abortable> extends Thread
|
|||
if (waitingTime < rollWaitTimeout && nAttempts < maxRollRetry) {
|
||||
nAttempts++;
|
||||
LOG.warn("Retry to roll log, nAttempts={}, waiting time={}ms, sleeping 1s to retry,"
|
||||
+ " last excepiton= {}", nAttempts, waitingTime,
|
||||
ioe.getCause().getClass().getSimpleName());
|
||||
+ " last exception", nAttempts, waitingTime, ioe);
|
||||
sleep(1000);
|
||||
} else {
|
||||
LOG.error("Roll wal failed and waiting timeout, will not retry", ioe);
|
||||
|
|
Loading…
Reference in New Issue