hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mberto...@apache.org
Subject svn commit: r1533621 - /hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java
Date Fri, 18 Oct 2013 20:33:27 GMT
Author: mbertozzi
Date: Fri Oct 18 20:33:27 2013
New Revision: 1533621

URL: http://svn.apache.org/r1533621
Log:
HBASE-9786 hbck -metaonly incorrectly reports inconsistent regions after HBASE-9698 fix

Modified:
    hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java

Modified: hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java?rev=1533621&r1=1533620&r2=1533621&view=diff
==============================================================================
--- hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java
(original)
+++ hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java
Fri Oct 18 20:33:27 2013
@@ -1867,6 +1867,10 @@ public class HBaseFsck extends Configure
   private void loadTableInfosForTablesWithNoRegion() throws IOException {
     Map<String, HTableDescriptor> allTables = new FSTableDescriptors(getConf()).getAll();
     for (HTableDescriptor htd : allTables.values()) {
+      if (checkMetaOnly && !htd.isMetaTable()) {
+        continue;
+      }
+
       TableName tableName = htd.getTableName();
       if (isTableIncluded(tableName) && !tablesInfo.containsKey(tableName)) {
         TableInfo tableInfo = new TableInfo(tableName);



Mime
View raw message