This is an automated email from the ASF dual-hosted git repository.

sershe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/master by this push:
     new fa3946f  HBASE-21626 log the regions blocking WAL from being archived 
ADDENDUM
fa3946f is described below

commit fa3946fbeaaffd6acfbd8530e22f85e0bf3321eb
Author: Sergey Shelukhin <[email protected]>
AuthorDate: Tue Jan 22 15:15:38 2019 -0800

    HBASE-21626 log the regions blocking WAL from being archived ADDENDUM
    
    Signed-off-by: Michael Stack <[email protected]>
---
 .../java/org/apache/hadoop/hbase/regionserver/wal/AbstractFSWAL.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/AbstractFSWAL.java
 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/AbstractFSWAL.java
index 68ba704..f09f251 100644
--- 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/AbstractFSWAL.java
+++ 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/AbstractFSWAL.java
@@ -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.

Reply via email to