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:
parent
a7083d93cb
commit
5833756e5e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue