ruanwenjun commented on code in PR #17526:
URL: 
https://github.com/apache/dolphinscheduler/pull/17526#discussion_r2366857228


##########
dolphinscheduler-registry/dolphinscheduler-registry-plugins/dolphinscheduler-registry-zookeeper/src/main/java/org/apache/dolphinscheduler/plugin/registry/zookeeper/ZookeeperTreeCacheListenerAdapter.java:
##########
@@ -39,6 +39,11 @@ public ZookeeperTreeCacheListenerAdapter(final String 
watchedPath, final Subscri
 
     @Override
     public void childEvent(final CuratorFramework curatorFramework, final 
TreeCacheEvent event) {
+        // When the event type is INITIALIZED or CONNECTION_SUSPENDED or 
CONNECTION_LOST or CONNECTION_RECONNECTED, the
+        // data in the event is null by default
+        if (event.getData() == null) {
+            return;
+        }

Review Comment:
   Yes, this is a known case, since this not affect the program, only print a 
log, so no one fix it.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to