Repository: hbase
Updated Branches:
  refs/heads/branch-1 fe99ebb0e -> a586b4b0a


HBASE-21387 Addendum fix TestSnapshotFileCache

Signed-off-by: zhangduo <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/a586b4b0
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/a586b4b0
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/a586b4b0

Branch: refs/heads/branch-1
Commit: a586b4b0a2cd9ba340387bb57adc7da01bcb5e3c
Parents: fe99ebb
Author: Ted Yu <[email protected]>
Authored: Sat Nov 24 17:00:08 2018 +0800
Committer: zhangduo <[email protected]>
Committed: Sat Nov 24 17:01:09 2018 +0800

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/master/snapshot/SnapshotFileCache.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/a586b4b0/hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot/SnapshotFileCache.java
----------------------------------------------------------------------
diff --git 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot/SnapshotFileCache.java
 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot/SnapshotFileCache.java
index 08efe01..a1d382b 100644
--- 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot/SnapshotFileCache.java
+++ 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot/SnapshotFileCache.java
@@ -190,7 +190,7 @@ public class SnapshotFileCache implements Stoppable {
     }
     if (lock == null || lock.tryLock()) {
       try {
-        if (snapshotManager == null || snapshotManager.isTakingAnySnapshot()) {
+        if (snapshotManager != null && snapshotManager.isTakingAnySnapshot()) {
           LOG.warn("Not checking unreferenced files since snapshot is running, 
it will "
               + "skip to clean the HFiles this time");
           return unReferencedFiles;

Reply via email to