saintstack commented on a change in pull request #791: HBASE-23247 [hbck2]
Schedule SCPs for 'Unknown Servers'
URL: https://github.com/apache/hbase/pull/791#discussion_r341832614
##########
File path:
hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java
##########
@@ -2706,7 +2707,13 @@ private boolean containMetaWals(ServerName serverName)
throws IOException {
AbstractFSWALProvider.getWALDirectoryName(serverName.toString()));
Path splitDir = logDir.suffix(AbstractFSWALProvider.SPLITTING_EXT);
Path checkDir = master.getFileSystem().exists(splitDir) ? splitDir :
logDir;
- return master.getFileSystem().listStatus(checkDir, META_FILTER).length > 0;
+ try {
+ return master.getFileSystem().listStatus(checkDir, META_FILTER).length >
0;
+ } catch (FileNotFoundException fnfe) {
+ // If no files, then we don't contain metas; was failing schedule of
Review comment:
Will do.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services