[
https://issues.apache.org/jira/browse/CURATOR-241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14651284#comment-14651284
]
ASF GitHub Bot commented on CURATOR-241:
----------------------------------------
Github user cammckenzie commented on a diff in the pull request:
https://github.com/apache/curator/pull/95#discussion_r36049780
--- Diff:
curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentEphemeralNode.java
---
@@ -338,10 +338,14 @@ public void setData(byte[] data) throws Exception
this.data.set(Arrays.copyOf(data, data.length));
if ( isActive() )
{
- client.setData().inBackground().forPath(getActualPath(),
this.data.get());
+ client.setData().inBackground().forPath(getActualPath(),
getData());
--- End diff --
I think that this change isn't required as the data is being accessed
directly from within this method.
> PersistentEphemeralNode writes initial data on reconnect
> --------------------------------------------------------
>
> Key: CURATOR-241
> URL: https://issues.apache.org/jira/browse/CURATOR-241
> Project: Apache Curator
> Issue Type: Bug
> Components: Recipes
> Affects Versions: 2.8.0
> Reporter: Alex Brasetvik
>
> A `PersistentEphemeralNode` initialised with "initial data", then updated
> using `setData("updated data")` may overwrite the updated data with "initial
> data" on reconnect.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)