AlbumenJ commented on code in PR #14166:
URL: https://github.com/apache/dubbo/pull/14166#discussion_r1606304934


##########
dubbo-registry/dubbo-registry-zookeeper/src/main/java/org/apache/dubbo/registry/zookeeper/ZookeeperRegistry.java:
##########
@@ -201,7 +203,14 @@ public void doSubscribe(final URL url, final 
NotifyListener listener) {
                 ChildListener zkListener = 
ConcurrentHashMapUtils.computeIfAbsent(
                         listeners, listener, k -> (parentPath, 
currentChildren) -> {
                             for (String child : currentChildren) {
-                                child = URL.decode(child);
+                                try {
+                                    child = URL.decode(child);
+                                    if (!(JsonUtils.checkJson(child))) {
+                                        throw new Exception(child + "is not 
json");
+                                    }
+                                } catch (Exception e) {
+                                    logger.warn(PROTOCOL_ERROR_DESERIALIZE, 
"", "", e.getMessage());

Review Comment:
   Yes, for some human friendly comment



-- 
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: notifications-unsubscr...@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org
For additional commands, e-mail: notifications-h...@dubbo.apache.org

Reply via email to