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:27 UTC
[hbase] branch branch-2.4 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.4
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.4 by this push:
new eb41b47baa HBASE-27128 when open archiveRetries totalLogSize calculation mistake (#4546)
eb41b47baa is described below
commit eb41b47baa869b7508b303b7359abd5906ebb4b3
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 f766703df7..0015144245 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
@@ -694,11 +694,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) {