apache / dubbo

The java implementation of Apache Dubbo. An RPC and microservice framework.
https://dubbo.apache.org/
Apache License 2.0
40.48k stars 26.43k forks source link

zookeeper'Dubbo path has come out many strange nodes #988

Closed Liubey closed 6 years ago

Liubey commented 6 years ago

image

black is start with com.* in addition,we use "GenericService mode" to invoke the real services

Liubey commented 6 years ago

many many nodes, cause we can‘t connect zk to list these paths in cli.

ghost commented 6 years ago

这个 2525 是 / 多次 encode 出来的

chickenlj commented 6 years ago

I have encountered this problem before, you must have wrote ZK from other systems. Please check your program. @DocEcho suggest one possibility.

dayforward commented 6 years ago

不止一次遇到这个问题了,请教一下各位大神,非常感谢!

  1. 对 / 的多次编码造成,但是为什么会出现 / 并且 多次编码?
  2. chickenlj 提到 other systems,是指 zookeeper 从 windows 链接 unix?
  3. 有哪些情况会出现问题?
  4. 根本原因是什么?如何规避?
Jukewu commented 6 years ago

同样遇到过这个问题,没找到原因

Liubey commented 6 years ago

为什么要close,还没解决问题呢 @chickenlj ,再讨论讨论呗

chickenlj commented 6 years ago

Hi, Eason

This is very likely to be a env-related problems, do you have other systems writing data to ZK registry except for dubbo framework? I mean systems like dubbo-admin, which will write data to registry. Please remove the mosaic on the picture, so we can see this data was created by which part/feature.

Please send more details of this issue to dev@dubbo.apache.org for further discussion. We tend to discuss questions like this there.

On 16 Mar 2018, at 11:59 AM, Eason Lau notifications@github.com wrote:

为什么要close,还没解决问题呢 @chickenlj https://github.com/chickenlj — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alibaba/dubbo/issues/988#issuecomment-373596531, or mute the thread https://github.com/notifications/unsubscribe-auth/ARQlieEe-ebUTAaGyfTHLbu52Eyk7J1Uks5tezi0gaJpZM4Q0HD8.

yjqg6666 commented 6 years ago

php > var_dump(urldecode("%24")); string(1) "$" php > var_dump(urlencode("%24")); string(5) "%2524" php > var_dump(urlencode("%2524")); string(7) "%252524" php > var_dump(urlencode("%252524")); string(9) "%25252524" php > var_dump(urlencode("%25252524")); string(11) "%2525252524"

interface命名中含有特殊符号,然后多次转义的情况下会这样。  转义是在什么情况下执行的?什么情况下会再次转义?  我们有接口使用的是子类用到了$ 出现了多个252524。 zk节点下面都有[consumers, routers, providers, configurators] 且下级内容均为空,很大可能性是由dubbo写入的。

yjqg6666 commented 6 years ago

@Liubey
php > var_dump(urldecode("%2C")); string(1) ","

yun2018 commented 2 years ago

图片

老哥,这个后面咋解决的啊,现在也遇到了,求解中!!

yun2018 commented 2 years ago

老哥,麻烦问下这个问题有方法解决么