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 18a4a98c81df..13f4eb00c2e9 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 @@ -778,11 +778,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) {