From 2eb9249ac233008ff4e280a1f5a20bbb43a97ab2 Mon Sep 17 00:00:00 2001 From: Jonathan Hsieh Date: Thu, 10 Jan 2013 20:58:59 +0000 Subject: [PATCH] HBASE-7528 Unhelpful NPE in hbck -repair when adopting orphans if no tableinfo is found (Sergey Shelukhin) git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1431637 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 0a4d36c8d90..132f15da450 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 @@ -482,7 +482,7 @@ public class HBaseFsck extends Configured implements Tool { String tableName = Bytes.toString(hi.getTableName()); TableInfo tableInfo = tablesInfo.get(tableName); - Preconditions.checkNotNull("Table " + tableName + "' not present!", tableInfo); + Preconditions.checkNotNull(tableInfo, "Table '" + tableName + "' not present!"); HTableDescriptor template = tableInfo.getHTD(); // find min and max key values