HBASE-16294 hbck reporting "No HDFS region dir found" for replicas

Signed-off-by: Matteo Bertozzi <matteo.bertozzi@cloudera.com>
This commit is contained in:
Umesh Agashe 2016-09-21 10:05:33 -07:00 committed by Matteo Bertozzi
parent c80d671a06
commit 23c5ea39bd
1 changed files with 4 additions and 1 deletions

View File

@ -1170,7 +1170,10 @@ public class HBaseFsck extends Configured implements Closeable {
private void loadHdfsRegioninfo(HbckInfo hbi) throws IOException {
Path regionDir = hbi.getHdfsRegionDir();
if (regionDir == null) {
LOG.warn("No HDFS region dir found: " + hbi + " meta=" + hbi.metaEntry);
if (hbi.getReplicaId() == HRegionInfo.DEFAULT_REPLICA_ID) {
// Log warning only for default/ primary replica with no region dir
LOG.warn("No HDFS region dir found: " + hbi + " meta=" + hbi.metaEntry);
}
return;
}