HBASE-27128 when open archiveRetries totalLogSize calculation mistake (#4546)

Co-authored-by: zhengsicheng <zhengsicheng@jd.com>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit 5833756e5e)
This commit is contained in:
SiCheng-Zheng 2022-06-20 23:45:35 +08:00 committed by Duo Zhang
parent 89bda2c322
commit a0a018d6c3
1 changed files with 1 additions and 1 deletions

View File

@ -778,11 +778,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) {