HBASE-16930 AssignmentManager#checkWals() function can recur infinitely (Umesh Agashe)
This commit is contained in:
parent
fa3cbd1d80
commit
1b12a60392
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue