apache / dubbo-go

Go Implementation For Apache Dubbo .
https://dubbo.apache.org/
Apache License 2.0
4.71k stars 925 forks source link

使用dubbo-go注册消费者,但是却变成了提供者,而且覆盖了原提供者的信息。但服务却还能正常使用 #1208

Closed shuoshadow closed 3 years ago

shuoshadow commented 3 years ago

What happened: 注册消费者异常,导致提供者信息错误

消费者服务未启动时: image

消费者服务启动后: image

覆盖了提供者信息,自身变成了提供者

代码: image image

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?: github.com/apache/dubbo-go v0.0.0-20210323071401-f756eeb14f05 github.com/apache/dubbo-go-hessian2 v1.9.1

dubbo client yaml configure file

check: false request_timeout: "3s" connect_timeout: "3s"

application config

application: name: "ops-base-service" module: "dubbo-go user-info client" version: "1.0.0" environment: "dev"

registry config

registries: "devZK": protocol: "zookeeper" timeout: "3s" address: "192.168.101.202:2181" username: "" password: ""

reference config

references: "UserProvider": registry: "devZK" protocol: "dubbo" version: "1.0.0" interface: "com.xxx.user.provider.UserProvider" cluster: "failover" methods:

protocol config

protocol_conf: dubbo: reconnect_interval: 0 connection_number: 1 heartbeat_period: "5s" session_timeout: "180s" pool_size: 64 pool_ttl: 600 getty_session_param: compress_encoding: false tcp_no_delay: true tcp_keep_alive: true keep_alive_period: "120s" tcp_r_buf_size: 262144 tcp_w_buf_size: 65536 pkg_rq_size: 1024 pkg_wq_size: 512 tcp_read_timeout: "1s" tcp_write_timeout: "5s" wait_timeout: "1s" max_msg_len: 1024000 session_name: "client"`

shuoshadow commented 3 years ago
params:
  category: "consumers"

reference config增加如上配置