You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2018/04/11 19:50:37 UTC

hbase git commit: HBASE-20310 Fixed false inconsistency shown by hbck -metaonly option on HBase 2

Repository: hbase
Updated Branches:
  refs/heads/branch-2.0 0e8d42ba9 -> 6a081d347


HBASE-20310 Fixed false inconsistency shown by hbck -metaonly option on HBase 2

When -metaonly option is specified then tablesInfo is not populated for all tables from hdfs causing false inconsistency of dangling state in meta.


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

Branch: refs/heads/branch-2.0
Commit: 6a081d347c79f115b7103f3ebe67ec57601ed1d4
Parents: 0e8d42b
Author: Umesh Agashe <ua...@cloudera.com>
Authored: Fri Mar 30 12:21:31 2018 -0700
Committer: Michael Stack <st...@apache.org>
Committed: Wed Apr 11 12:50:26 2018 -0700

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/6a081d34/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 022674c..1a66612 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
@@ -2105,7 +2105,9 @@ public class HBaseFsck extends Configured implements Closeable {
             errors.reportError(ERROR_CODE.ORPHAN_TABLE_STATE,
                 tableName + " unable to delete dangling table state " + tableState);
           }
-        } else {
+        } else if (!checkMetaOnly) {
+          // dangling table state in meta if checkMetaOnly is false. If checkMetaOnly is
+          // true, tableInfo will be null as tablesInfo are not polulated for all tables from hdfs
           errors.reportError(ERROR_CODE.ORPHAN_TABLE_STATE,
               tableName + " has dangling table state " + tableState);
         }