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:
parent
89bda2c322
commit
a0a018d6c3
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue