-
Notifications
You must be signed in to change notification settings - Fork 917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
客户端发起调用时配置重试次数时不生效 #2598
Comments
dubbo-go/cluster/cluster/failover/cluster_invoker.go Lines 107 to 120 in 52c8103
默认走的是failover,可以看看这段代码,他实际上拿的是client上默认的retries,所以为重试2次 dubbo-go/cluster/cluster/failback/cluster_invoker.go Lines 215 to 217 in 52c8103
有意思的是,从源码可以看出WithCallRetries在failback策略是起作用的,反而WithClientRetries在failback不起作用 那么如果WithCallRetries的初衷是希望让本次调用走指定的次数,那么这里存在着bug |
我觉得你的理解是正确的,这么做是合理的 |
resp, err := svc.Greet(context.Background(), &greet.GreetRequest{Name: "correct name"}, client.WithCallRetries(1)) |
is this issue resolved already? |
resolved in #2717 |
Environment
Issue description
在尝试客户端调用服务端,服务端报错的case时,发现客户端会默认重试3次,但是我指定服务调用的重试次数为1时,仍然会进行3次调用,重试的配置没有生效
Logs
client log
server log
The text was updated successfully, but these errors were encountered: