You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Matteo Bertozzi (Updated) (JIRA)" <ji...@apache.org> on 2012/03/24 07:03:22 UTC
[jira] [Updated] (HBASE-5633) NPE reading ZK config in HBase
[ https://issues.apache.org/jira/browse/HBASE-5633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matteo Bertozzi updated HBASE-5633:
-----------------------------------
Attachment: HBASE-5633-v1.patch
Added a default value (HConstants.DEFAULT_CLUSTER_DISTRIBUTED) for the cluster.distributed property to config.get(HConstants.CLUSTER_DISTRIBUTED) in parseZooCfg().
We get a Null if the property doesn't exists, and the result of conf.get() is compared directly without checking for Null.
> NPE reading ZK config in HBase
> ------------------------------
>
> Key: HBASE-5633
> URL: https://issues.apache.org/jira/browse/HBASE-5633
> Project: HBase
> Issue Type: Bug
> Components: zookeeper
> Reporter: Matteo Bertozzi
> Assignee: Matteo Bertozzi
> Priority: Minor
> Attachments: HBASE-5633-v1.patch
>
>
> If zoo.cfg contains server.* ("server.0=server0:2888:3888\n") and cluster.distributed property (in hbase-site.xml) is empty we get an NPE in parseZooCfg().
> The easy way to reproduce the bug is running org.apache.hbase.zookeeper.TestHQuorumPeer with hbase-site.xml containing:
> {code}
> <property>
> <name>hbase.cluster.distributed</name>
> <value></value>
> </property>
> {code}
--
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