2451528105 opened a new issue, #3468:
URL: https://github.com/apache/dubbo-go/issues/3468

   ### ✅ 验证清单
   
   - [x] 🔍 我已经搜索过 [现有 
Issues](https://github.com/apache/dubbo-go/issues),确信这不是重复问题
   
   ### 服务端配置
   
   Dubbo v3.3.5 (JAVA)
   
   ### 客户端配置
   
   Dubbo-go v3.3.1
   
   ### 协议配置
   
   triple
   
   ### 注册中心配置
   
   Nacos v2.5.2
   
   ### 💬 您的问题
   
   运行go服务注册nacos上的java服务提供的dubbo 
provider实例的消费者后能正常调用接口。但provider实例执行先下线后上线操作,服务本地缓存invoker概率性更新不到最新实例列表。调用接口概率打到已经下线的旧实例上,发生超过两分钟的超时,配置的重试周期没有生效。
   
   ### 📚 背景信息
   
   nacos-sdk-go 版本 v2.3.5
   提供者滚动更新后,消费者需要重启一次才能正常运行。
   
怀疑nacos-server没有成功推送最新实例列表给nacos-sdk-go,或者成功推送后没通过nacos-sdk-go校验,因而没有调用dubbo-go的callback方法。
   客户端重启或者重新拉取后正常更新了本地invoker。
   
   ### 🔗 相关资源
   
   //客户端初始化配置
   cli, err := client.NewClient(
                client.SetClientApplication(clientApp),
                
client.WithClientLoadBalance(constant.LoadBalanceKeyInterleavedWeightedRoundRobin),
 //  加权轮询
                client.WithClientRegistry(
                        registry.WithNacos(),
                        registry.WithAddress(regCfg.Addr()),
                        registry.WithNamespace(regCfg.Namespace),
                        registry.WithGroup(regCfg.Group),
                        registry.WithRegisterInterface(), // IMP 
service级注册时,若先于 api.Start() 执行, 会覆盖 api.Start() 中的服务注册
                ),
                client.WithClientRequestTimeout(time.Second*5), // 超时时间
        )


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to