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-3.0 Commit: 73cd00aed8e42cf38dcbf5b1dd36826b3041ee13 Parents: f4dcec3 Author: randgalt <[email protected]> Authored: Mon Mar 28 21:18:58 2016 -0500 Committer: randgalt <[email protected]> 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
