EndlessSeeker opened a new issue, #2598:
URL: https://github.com/apache/dubbo-go/issues/2598
### Environment
- Server: dubbo-go 3.2
- Client: dubbo-go 3.2
- Protocol: triple
### Issue description
在尝试客户端调用服务端,服务端报错的case时,发现客户端会默认重试3次,但是我指定服务调用的重试次数为1时,仍然会进行3次调用,重试的配置没有生效
```go
resp, err = svc.Greet(context.Background(), &greet.GreetRequest{Name:
"wrong name"}, client.WithCallRetries(1))
if err != nil {
logger.Errorf("call Greet failed, err: %s", err.Error())
}
```
### Logs
client log
```
2024-02-28 17:57:49 ERROR logger/logging.go:52 call Greet failed, err:
[Failed to invoke the method Greet in the service greet.GreetService. Tried 2
times of the providers
[tri://:@127.0.0.1:20000/?interface=greet.GreetService&group=&version=
tri://:@127.0.0.1:20000/?interface=greet.GreetService&group=&version=
tri://:@127.0.0.1:20000/?interface=greet.GreetService&group=&version=]
(3/1)from the registry
tri://127.0.0.1:20000/greet.GreetService?app.version=&application=dubbo.io&async=false&bean.name=greet.GreetService&cluster=failover&config.tracing=&environment=&generic=&group=&interface=greet.GreetService&loadbalance=&metadata-type=local&module=sample&name=dubbo.io&organization=dubbo-go&owner=dubbo-go&peer=true&provided-by=&reference.filter=cshutdown®istry.role=0&release=dubbo-golang-3.2.0&remote.timestamp=&retries=&serialization=protobuf&side=consumer&sticky=false×tamp=1709114268&version=
on the consumer 30.221.146.234 using the dubbo version 3.2.0. Last error is
unknown
: name is not right: wrong name.: unknown: name is not right: wrong name]
```
server log
```
2024-02-28 17:57:49 ERROR logger/logging.go:32 [name is not right:
wrong name]
2024-02-28 17:57:49 ERROR logger/logging.go:32 [name is not right:
wrong name]
2024-02-28 17:57:49 ERROR logger/logging.go:32 [name is not right:
wrong name]
```
--
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]