HBASE-12763 Make it so there must be WALs for a server to be marked dead
This commit is contained in:
parent
8aadc5de1e
commit
317d137452
|
@ -239,6 +239,11 @@ public class MasterFileSystem {
|
|||
return serverNames;
|
||||
}
|
||||
for (FileStatus status : logFolders) {
|
||||
FileStatus[] curLogFiles = FSUtils.listStatus(this.fs, status.getPath(), null);
|
||||
if (curLogFiles == null || curLogFiles.length == 0) {
|
||||
// Empty log folder. No recovery needed
|
||||
continue;
|
||||
}
|
||||
final ServerName serverName = DefaultWALProvider.getServerNameFromWALDirectoryName(
|
||||
status.getPath());
|
||||
if (null == serverName) {
|
||||
|
|
Loading…
Reference in New Issue