You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2022/06/20 15:55:37 UTC
[hbase] branch branch-2 updated: HBASE-27128 when open archiveRetries totalLogSize calculation mistake (#4546)
This is an automated email from the ASF dual-hosted git repository.
zhangduo pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2 by this push:
new e1de804ba1 HBASE-27128 when open archiveRetries totalLogSize calculation mistake (#4546)
e1de804ba1 is described below
commit e1de804ba1fe949384b7f5160dd571664c320585
Author: SiCheng-Zheng <64...@qq.com>
AuthorDate: Mon Jun 20 23:45:35 2022 +0800
HBASE-27128 when open archiveRetries totalLogSize calculation mistake (#4546)
Co-authored-by: zhengsicheng <zh...@jd.com>
Signed-off-by: Duo Zhang <zh...@apache.org>
(cherry picked from commit 5833756e5e7cdc01d50538e5c9f959a79fcfd7a3)
---
.../java/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 c1864592ae..99fd88ba4d 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 @@ public abstract class AbstractFSWAL<W extends WriterBase> implements WAL {
}
protected void archive(final Pair<Path, Long> log) {
+ totalLogSize.addAndGet(-log.getSecond());
int retry = 1;
while (true) {
try {
archiveLogFile(log.getFirst());
- totalLogSize.addAndGet(-log.getSecond());
// successful
break;
} catch (Throwable e) {