curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randg...@apache.org
Subject curator git commit: Added comment
Date Tue, 29 Mar 2016 02:19:06 GMT
Repository: curator
Updated Branches:
  refs/heads/CURATOR-310 f4dcec3e6 -> 73cd00aed


Added comment


Project: http://git-wip-us.apache.org/repos/asf/curator/repo
Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/73cd00ae
Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/73cd00ae
Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/73cd00ae

Branch: refs/heads/CURATOR-310
Commit: 73cd00aed8e42cf38dcbf5b1dd36826b3041ee13
Parents: f4dcec3
Author: randgalt <randgalt@apache.org>
Authored: Mon Mar 28 21:18:58 2016 -0500
Committer: randgalt <randgalt@apache.org>
Committed: Mon Mar 28 21:18:58 2016 -0500

----------------------------------------------------------------------
 .../apache/curator/framework/recipes/nodes/PersistentNode.java  | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/73cd00ae/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentNode.java
----------------------------------------------------------------------
diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentNode.java
b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentNode.java
index bf11f81..5f94ea1 100644
--- a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentNode.java
+++ b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentNode.java
@@ -309,7 +309,10 @@ public class PersistentNode implements Closeable
     }
 
     /**
-     * Set data that node should set in ZK also writes the data to the node
+     * Set data that node should set in ZK also writes the data to the node. NOTE: it
+     * is an error to call this method after {@link #start()} but before the initial create
+     * has completed. Use {@link #waitForInitialCreate(long, TimeUnit)} to ensure initial
+     * creation.
      *
      * @param data new data value
      * @throws Exception errors


Mime
View raw message