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) {
|
if (waitingTime < rollWaitTimeout && nAttempts < maxRollRetry) {
|
||||||
nAttempts++;
|
nAttempts++;
|
||||||
LOG.warn("Retry to roll log, nAttempts={}, waiting time={}ms, sleeping 1s to retry,"
|
LOG.warn("Retry to roll log, nAttempts={}, waiting time={}ms, sleeping 1s to retry,"
|
||||||
+ " last excepiton= {}", nAttempts, waitingTime,
|
+ " last exception", nAttempts, waitingTime, ioe);
|
||||||
ioe.getCause().getClass().getSimpleName());
|
|
||||||
sleep(1000);
|
sleep(1000);
|
||||||
} else {
|
} else {
|
||||||
LOG.error("Roll wal failed and waiting timeout, will not retry", ioe);
|
LOG.error("Roll wal failed and waiting timeout, will not retry", ioe);
|
||||||
|
|
Loading…
Reference in New Issue