HBASE-23009 TestSnapshotScannerHDFSAclController is broken on branch-2

This commit is contained in:
meiyi 2019-09-11 11:16:53 +08:00 committed by Peter Somogyi
parent 2c118c6c01
commit 516e921cc0
1 changed files with 1 additions and 1 deletions

View File

@ -429,7 +429,7 @@ public abstract class CleanerChore<T extends FileCleanerDelegate> extends Schedu
}
try {
boolean allSubDirsDeleted = futures.stream().allMatch(CompletableFuture::join);
boolean deleted = allFilesDeleted && allSubDirsDeleted;
boolean deleted = allFilesDeleted && allSubDirsDeleted && isEmptyDirDeletable(dir);
if (deleted && !root) {
// If and only if files and sub-dirs under current dir are deleted successfully, and
// the empty directory can be deleted, and it is not the root dir then task will