yangpixi opened a new issue, #3214: URL: https://github.com/apache/dubbo-go/issues/3214
### ✅ 验证清单 - [x] 🔍 我已经搜索过 [现有 Issues](https://github.com/apache/dubbo-go/issues),确信这不是重复问题 ### 服务端配置 Dubbo-go, v3.3.2 ### 客户端配置 Dubbo-go, v3.3.2 ### 协议配置 Triple ### 注册中心配置 Nacos, v2.4.3 ### 💬 您的问题 启动两个application name相同的server但是为这两者提供的service设置不同的版本时,两者会产生冲突,使用client调用的时候,只能调用其中某一个实例。 server1代码: ``` srvOpts := []server.ServiceOption{ server.WithVersion("1.0.0"), } if err := greet.RegisterGreetServiceHandler(srv, &GreetServer{srvName: "server-v1"}, srvOpts...); err != nil { logger.Errorf("register greet handler failed: %v", err) panic(err) } ``` server2代码: ``` srvOpts := []server.ServiceOption{ server.WithVersion("2.0.0"), } if err := greet.RegisterGreetServiceHandler(srv, &GreetServer{srvName: "server-v2"}, srvOpts...); err != nil { logger.Errorf("register greet handler failed: %v", err) panic(err) } ``` client调用代码: ``` svc, err := greet.NewGreetService(cli, client.WithVersion("1.0.0")) rep, err := svc.Greet(context.Background(), &greet.GreetRequest{Name: "hello world"}) ``` client设置的version在1.0.0与2.0.0切换时,只能在其中一种版本下调用成功。 疑问:dubbo-go不支持这种设置,还是说这是bug? ### 📚 背景信息 为什么询问: condition router进行路由的时候需要根据version选择invoker。 ### 🔗 相关资源 _No response_ -- 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]
