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

Co-authored-by: zhengsicheng <zhengsicheng@jd.com>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
SiCheng-Zheng 2022-06-20 23:45:35 +08:00 committed by GitHub
parent a7083d93cb
commit 5833756e5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) {