HBASE-21387 Addendum fix TestSnapshotFileCache
Signed-off-by: zhangduo <zhangduo@apache.org>
This commit is contained in:
parent
6d0dc960e6
commit
d9c773b0a5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue