Phixsura commented on issue #2598:
URL: https://github.com/apache/dubbo-go/issues/2598#issuecomment-1971642455

   [cluster/cluster/failover/cluster_invoker.go 
107-120](https://github.com/apache/dubbo-go/blob/52c81032a6437c458b0d953596bd457a92b3d271/cluster/cluster/failover/cluster_invoker.go#L107C1-L120C2)
   默认走的是failover,可以看看这段代码,他实际上拿的是client上默认的retries,所以为重试2次
   
   
https://github.com/apache/dubbo-go/blob/52c81032a6437c458b0d953596bd457a92b3d271/cluster/cluster/failback/cluster_invoker.go#L215-L217
   有意思的是,从源码可以看出WithCallRetries在failback策略是起作用的,反而WithClientRetries在failback不起作用
   
   那么如果WithCallRetries的初衷是希望让本次调用走指定的次数,那么这里存在着bug
   且如果WithCallRetries是默认让端上所有未定义的请求走指定次数,那这或许也存在bug,如果我理解没问题的话
   


-- 
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: notifications-unsubscr...@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org
For additional commands, e-mail: notifications-h...@dubbo.apache.org

Reply via email to