hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Hsieh (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-5928) Hbck shouldn't npe when there are no tables.
Date Thu, 03 May 2012 23:04:48 GMT

    [ https://issues.apache.org/jira/browse/HBASE-5928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13267922#comment-13267922
] 

Jonathan Hsieh commented on HBASE-5928:
---------------------------------------

Elliot, are you willing to make the change in the HBaseFsck#getHTableDescriptors method so
that instead of being initialized to null it is initialized to empty array?

For some reason I thought I had modified that method in that exact place to return empty array
already in a previous patch. 
                
> 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

        

Mime
View raw message