HBASE-21387 Addendum fix TestSnapshotFileCache

Signed-off-by: zhangduo <zhangduo@apache.org>
This commit is contained in:
Ted Yu 2018-11-24 17:00:08 +08:00 committed by zhangduo
parent 6d0dc960e6
commit d9c773b0a5
1 changed files with 1 additions and 1 deletions

View File

@ -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;