HBASE-21626 log the regions blocking WAL from being archived ADDENDUM

Signed-off-by: Michael Stack <stack@apache.org>
This commit is contained in:
Sergey Shelukhin 2019-01-22 15:15:38 -08:00
parent 35ed5d6c39
commit fa3946fbea
1 changed files with 1 additions and 1 deletions

View File

@ -631,7 +631,7 @@ public abstract class AbstractFSWAL<W extends WriterBase> implements WAL {
private void cleanOldLogs() throws IOException {
List<Pair<Path, Long>> logsToArchive = null;
long now = System.nanoTime();
boolean mayLogTooOld = nextLogTooOldNs > now;
boolean mayLogTooOld = nextLogTooOldNs <= now;
ArrayList<byte[]> regionsBlockingWal = null;
// For each log file, look at its Map of regions to highest sequence id; if all sequence ids
// are older than what is currently in memory, the WAL can be GC'd.