HBASE-16930 AssignmentManager#checkWals() function can recur infinitely (Umesh Agashe)

This commit is contained in:
tedyu 2016-10-24 10:10:03 -07:00
parent fa3cbd1d80
commit 1b12a60392
1 changed files with 1 additions and 1 deletions

View File

@ -611,7 +611,7 @@ public class AssignmentManager {
if (files[i].isFile() && files[i].getLen() > 0) { if (files[i].isFile() && files[i].getLen() > 0) {
LOG.debug(dir + " has a non-empty file: " + files[i].getPath()); LOG.debug(dir + " has a non-empty file: " + files[i].getPath());
return true; return true;
} else if (files[i].isDirectory() && checkWals(fs, dir)) { } else if (files[i].isDirectory() && checkWals(fs, files[i].getPath())) {
LOG.debug(dir + " is a directory and has a non-empty file: " + files[i].getPath()); LOG.debug(dir + " is a directory and has a non-empty file: " + files[i].getPath());
return true; return true;
} }