HBASE-26840 Fix NPE in the retry of logroller (#4224)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
parent
a816204793
commit
fb09cb9e7b
|
@ -223,8 +223,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