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 

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: 
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to