HBASE-26840 Fix NPE in the retry of logroller (#4224)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
Xiaolin Ha 2022-03-15 21:59:09 +08:00 committed by haxiaolin
parent 920cf9d7d4
commit 31cb0b809c
1 changed files with 1 additions and 2 deletions

View File

@ -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);