diff --git a/CHANGES.txt b/CHANGES.txt index 3e0dd8aacea..84280483e5e 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -147,6 +147,8 @@ Release 0.90.2 - Unreleased HBASE-3582 Allow HMaster and HRegionServer to login from keytab hen on secure Hadoop HBASE-3608 MemstoreFlusher error message doesnt include exception! + HBASE-3633 ZKUtil::createSetData should only create a node when it + nonexists (Guanpeng Xu via Stack) IMPROVEMENTS HBASE-3542 MultiGet methods in Thrift diff --git a/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java b/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java index ead223f027f..ef063bc08e5 100644 --- a/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java +++ b/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java @@ -723,7 +723,7 @@ public class ZKUtil { public static void createSetData(final ZooKeeperWatcher zkw, final String znode, final byte [] data) throws KeeperException { - if (checkExists(zkw, znode) != -1) { + if (checkExists(zkw, znode) == -1) { ZKUtil.createWithParents(zkw, znode); } ZKUtil.setData(zkw, znode, data);