HBASE-25047 WAL split edits number is negative in RegionServerUI (#2408)
Signed-off-by: Viraj Jasani <vjasani@apache.org> Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Guanghao Zhang <zghao@apache.org>
This commit is contained in:
parent
b3dfc8f714
commit
9fc586a7eb
|
@ -363,6 +363,7 @@ public class WALSplitter {
|
||||||
}
|
}
|
||||||
lastFlushedSequenceIds.put(encodedRegionNameAsStr, lastFlushedSequenceId);
|
lastFlushedSequenceIds.put(encodedRegionNameAsStr, lastFlushedSequenceId);
|
||||||
}
|
}
|
||||||
|
editsCount++;
|
||||||
if (lastFlushedSequenceId >= entry.getKey().getSequenceId()) {
|
if (lastFlushedSequenceId >= entry.getKey().getSequenceId()) {
|
||||||
editsSkipped++;
|
editsSkipped++;
|
||||||
continue;
|
continue;
|
||||||
|
@ -373,7 +374,6 @@ public class WALSplitter {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
entryBuffers.appendEntry(entry);
|
entryBuffers.appendEntry(entry);
|
||||||
editsCount++;
|
|
||||||
int moreWritersFromLastCheck = this.getNumOpenWriters() - numOpenedFilesLastCheck;
|
int moreWritersFromLastCheck = this.getNumOpenWriters() - numOpenedFilesLastCheck;
|
||||||
// If sufficient edits have passed, check if we should report progress.
|
// If sufficient edits have passed, check if we should report progress.
|
||||||
if (editsCount % interval == 0
|
if (editsCount % interval == 0
|
||||||
|
|
Loading…
Reference in New Issue