Revert: HBASE-14391 Empty regionserver WAL will never be deleted although the coresponding regionserver has been stale

This commit is contained in:
Jerry He 2015-09-21 19:34:55 -07:00
parent 783e20e1a7
commit 45d67435ad
1 changed files with 0 additions and 4 deletions

View File

@ -251,10 +251,6 @@ public class MasterFileSystem {
FileStatus[] curLogFiles = FSUtils.listStatus(this.fs, status.getPath(), null);
if (curLogFiles == null || curLogFiles.length == 0) {
// Empty log folder. No recovery needed
// Just delete the directory
if (!fs.delete(status.getPath(), false)) {
LOG.warn("Unable to delete " + status.getPath());
}
continue;
}
final ServerName serverName = DefaultWALProvider.getServerNameFromWALDirectoryName(