From 3a0518c399e755df48645eaabd0f359f28b1639c Mon Sep 17 00:00:00 2001 From: zhengsicheng Date: Fri, 17 Jun 2022 15:17:54 +0800 Subject: [PATCH] HBASE-27128 when open archiveRetries totalLogSize calculation mistake --- .../org/apache/hadoop/hbase/regionserver/wal/AbstractFSWAL.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/AbstractFSWAL.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/AbstractFSWAL.java index c1864592ae32..99fd88ba4ddb 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/AbstractFSWAL.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/AbstractFSWAL.java @@ -719,11 +719,11 @@ private void cleanOldLogs() throws IOException { } protected void archive(final Pair log) { + totalLogSize.addAndGet(-log.getSecond()); int retry = 1; while (true) { try { archiveLogFile(log.getFirst()); - totalLogSize.addAndGet(-log.getSecond()); // successful break; } catch (Throwable e) {