Repository: hbase
Updated Branches:
  refs/heads/branch-1.1 31a2f04e9 -> f7961ea70
  refs/heads/branch-1.2 2f0a00670 -> c66542454
  refs/heads/branch-1.3 e9a5c60d1 -> 9aaff6045


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

Signed-off-by: Matteo Bertozzi <matteo.berto...@cloudera.com>


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/9aaff604
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/9aaff604
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/9aaff604

Branch: refs/heads/branch-1.3
Commit: 9aaff6045b151518a0cdaf694ebd477bff30b2c0
Parents: e9a5c60
Author: Umesh Agashe <uaga...@cloudera.com>
Authored: Wed Sep 21 10:05:33 2016 -0700
Committer: Matteo Bertozzi <matteo.berto...@cloudera.com>
Committed: Wed Sep 21 14:20:00 2016 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/9aaff604/hbase-server/src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java
----------------------------------------------------------------------
diff --git 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java
index 11bd235..1807a93 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java
@@ -1118,7 +1118,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;
     }
 

Reply via email to