You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Elliott Clark (JIRA)" <ji...@apache.org> on 2012/05/03 20:24:51 UTC

[jira] [Updated] (HBASE-5928) Hbck shouldn't npe when there are no tables.

     [ https://issues.apache.org/jira/browse/HBASE-5928?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Elliott Clark updated HBASE-5928:
---------------------------------

    Attachment: HBASE-5928-0.patch

Pretty small patch.
HConnectionManager.getHTableDescriptors returns null when there are no tables.

I assumed this was expected so handling the null is needed.
                
> Hbck shouldn't npe when there are no tables.
> --------------------------------------------
>
>                 Key: HBASE-5928
>                 URL: https://issues.apache.org/jira/browse/HBASE-5928
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Elliott Clark
>            Assignee: Elliott Clark
>            Priority: Minor
>         Attachments: HBASE-5928-0.patch
>
>
> hbase fsck errors out when there are no tables.
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.hadoop.hbase.util.HBaseFsck.reportTablesInFlux(HBaseFsck.java:560)
> 	at org.apache.hadoop.hbase.util.HBaseFsck.onlineConsistencyRepair(HBaseFsck.java:346)
> 	at org.apache.hadoop.hbase.util.HBaseFsck.onlineHbck(HBaseFsck.java:382)
> 	at org.apache.hadoop.hbase.util.HBaseFsck.main(HBaseFsck.java:3120)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira