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

Guanpeng Xu updated HBASE-3633:
-------------------------------

    Status: Patch Available  (was: Open)

*** ZKUtil.java~        2011-02-09 08:23:12.000000000 +0800
--- ZKUtil.java 2011-03-14 17:12:33.000000000 +0800
***************
*** 723,729 ****
    public static void createSetData(final ZooKeeperWatcher zkw, final String 
znode,
        final byte [] data)
    throws KeeperException {
!     if (checkExists(zkw, znode) != -1) {
        ZKUtil.createWithParents(zkw, znode);
      }
      ZKUtil.setData(zkw, znode, data);
--- 723,729 ----
    public static void createSetData(final ZooKeeperWatcher zkw, final String 
znode,
        final byte [] data)
    throws KeeperException {
!     if (checkExists(zkw, znode) == -1) {
        ZKUtil.createWithParents(zkw, znode);
      }
      ZKUtil.setData(zkw, znode, data);

> ZKUtil::createSetData should only create a node when it nonexists
> -----------------------------------------------------------------
>
>                 Key: HBASE-3633
>                 URL: https://issues.apache.org/jira/browse/HBASE-3633
>             Project: HBase
>          Issue Type: Bug
>          Components: zookeeper
>    Affects Versions: 0.90.1
>            Reporter: Guanpeng Xu
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> This is a typo.  The predicate tests for the wrong answer.  Please see the 
> patch, which is clear.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to