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
This commit is contained in:
Jonathan Hsieh 2013-01-10 20:58:59 +00:00
parent f26e14a1b1
commit 2eb9249ac2
1 changed files with 1 additions and 1 deletions

View File

@ -482,7 +482,7 @@ public class HBaseFsck extends Configured implements Tool {
String tableName = Bytes.toString(hi.getTableName()); String tableName = Bytes.toString(hi.getTableName());
TableInfo tableInfo = tablesInfo.get(tableName); TableInfo tableInfo = tablesInfo.get(tableName);
Preconditions.checkNotNull("Table " + tableName + "' not present!", tableInfo); Preconditions.checkNotNull(tableInfo, "Table '" + tableName + "' not present!");
HTableDescriptor template = tableInfo.getHTD(); HTableDescriptor template = tableInfo.getHTD();
// find min and max key values // find min and max key values