Revert: HBASE-14391 Empty regionserver WAL will never be deleted although the coresponding regionserver has been stale
This commit is contained in:
parent
783e20e1a7
commit
45d67435ad
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue