Skip to content

Commit

Permalink
HBASE-27128 when open archiveRetries totalLogSize calculation mistake (
Browse files Browse the repository at this point in the history
…#4546)

Co-authored-by: zhengsicheng <[email protected]>
Signed-off-by: Duo Zhang <[email protected]>
  • Loading branch information
SiCheng-Zheng and zhengsicheng authored Jun 20, 2022
1 parent a7083d9 commit 5833756
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -719,11 +719,11 @@ private void cleanOldLogs() throws IOException {
}

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) {
Expand Down

0 comments on commit 5833756

Please sign in to comment.