apache / dubbo-admin

The ops and reference implementation for Apache Dubbo
https://dubbo.apache.org
Apache License 2.0
3.98k stars 2.17k forks source link

Dubbo admin-0.5.0 消费者IP显示错误,全部显示为dubbo admin部署服务器IP地址 #1191

Open sadeychai opened 1 year ago

sadeychai commented 1 year ago

Environment

Steps to reproduce this issue

  1. dubbo服务端为3.1.8
  2. dubbo消费端3.1.8和2.7.6共存
  3. dubbo admin重启后首次看consumer信息内IP地址是对的。但是任意dubbo消费端重启后,dubbo admin内展示的consumer ip地址就全部变成了dubbo admin所在的部署服务器IP。 image

dubbo-registry-null-xxx.cache内看到很多无IP的consumer信息会被追加到对应provider后面:

consumer\:///com.xx.xx.lemma.api.provider.LemmaProvider?application\=web-xx-mobile&category\=consumers&check\=false&dubbo\=2.0.2&release\=2.7.6-SNAPSHOT consumer\:///com.xx.xx.lemma.api.provider.LemmaProvider?application\=service-baike&category\=consumers&check\=false&dubbo\=2.0.2&release\=2.7.6-SNAPSHOT consumer\:///com.xx.xx.lemma.api.provider.LemmaProvider?application\=service-xx-mix&category\=consumers&check\=false&dubbo\=2.0.2&release\=3.1.8