You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@curator.apache.org by "kezhuw (via GitHub)" <gi...@apache.org> on 2023/04/03 16:24:38 UTC

[GitHub] [curator] kezhuw commented on a diff in pull request #454: CURATOR-666: Fix twice unfixForNamespace in background create

kezhuw commented on code in PR #454:
URL: https://github.com/apache/curator/pull/454#discussion_r1156186438


##########
curator-framework/src/main/java/org/apache/curator/framework/imps/CreateBuilderImpl.java:
##########
@@ -797,7 +797,7 @@ public void performBackgroundOperation(OperationAndData<T> dummy) throws Excepti
                 {
                     if ( !client.getZookeeperClient().getRetryPolicy().allowRetry(e) )
                     {
-                        final CuratorEvent event = makeCuratorEvent(client, e.code().intValue(), e.getPath(), null, e.getPath(), null);

Review Comment:
   I overlooked the callback case in reviewing #453, `CuratorEvent::getName` is useless in reconstruction of `KeeperException`. But in callback, it should be `null` as no node is created. This is also consistent with ZooKeeper world's callback. This is currently pushed as hotfix commit. I think it might not worth to create separated pr for this. Any thoughts ? @tisonkun @eolivelli 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@curator.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org