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:
parent
f26e14a1b1
commit
2eb9249ac2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue