Skip to content

Commit 31cb0b8

Browse files
committed
HBASE-26840 Fix NPE in the retry of logroller (apache#4224)
Signed-off-by: Duo Zhang <[email protected]>
1 parent 920cf9d commit 31cb0b8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

hbase-server/src/main/java/org/apache/hadoop/hbase/wal/AbstractWALRoller.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,7 @@ public void run() {
217217
if (waitingTime < rollWaitTimeout && nAttempts < maxRollRetry) {
218218
nAttempts++;
219219
LOG.warn("Retry to roll log, nAttempts={}, waiting time={}ms, sleeping 1s to retry,"
220-
+ " last excepiton= {}", nAttempts, waitingTime,
221-
ioe.getCause().getClass().getSimpleName());
220+
+ " last exception", nAttempts, waitingTime, ioe);
222221
sleep(1000);
223222
} else {
224223
LOG.error("Roll wal failed and waiting timeout, will not retry", ioe);

0 commit comments

Comments
 (0)