You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/07/20 12:26:58 UTC

[GitHub] [dubbo] zrlw opened a new issue #8325: Dubbo 2.7.12 consumer没有配置retries时,没有使用provider配置的retries

zrlw opened a new issue #8325:
URL: https://github.com/apache/dubbo/issues/8325


   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   - [ ] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 2.7.12
   * Operating System version: centos 7
   * Java version: 1.8
   
   ### Steps to reproduce this issue
   provider的springboot工程application.yml配置了dubbo.provider.retries=0,
   consumer的springboot工程application.yml没有配置dubbo.consumer.retries
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Result
   
   What do you expected from the above steps?
   consumer调用provider失败时不自动重发。
   ### Actual Result
   
   What actually happens?
   consumer调用provider超时自动重试。


-- 
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-unsubscribe@dubbo.apache.org

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



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


[GitHub] [dubbo] chickenlj removed a comment on issue #8325: Dubbo 2.7.12 consumer没有配置retries时,没有使用provider配置的retries

Posted by GitBox <gi...@apache.org>.
chickenlj removed a comment on issue #8325:
URL: https://github.com/apache/dubbo/issues/8325#issuecomment-953584335


   ![image](https://user-images.githubusercontent.com/18097545/139209406-3d627879-9400-4d45-834f-9c949c5d84ef.png)
   
   OverrideDirectoryUrl其实是完全工作在消费端,不应该感知到后端 Invoker 具体的provider示例层面的配置;当前是随机选取了一个 provider 的 retries 配置覆盖到了集群上


-- 
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-unsubscribe@dubbo.apache.org

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



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


[GitHub] [dubbo] wuwen5 commented on issue #8325: Dubbo 2.7.12 consumer没有配置retries时,没有使用provider配置的retries

Posted by GitBox <gi...@apache.org>.
wuwen5 commented on issue #8325:
URL: https://github.com/apache/dubbo/issues/8325#issuecomment-1015329205


   @chickenlj  会影响到 #6426  问题吗 ? 2.7.6及后续版本中标签路由(TagRouter)行为不符合预期的问题
   
   > 经过 org.apache.dubbo.registry.integration.RegistryDirectory#mergeUrl 方法的处理之后,程序会把provider端的tag注入到属性 this.overrideDirectoryUrl中,因此 getConsumerUrl 方法返回的URL中就有了 tag 信息
   > 请问这个问题是否会被修正呢?还是我们的用法不对?
   
   升级2.7.15后发现 又重现 #6426 的问题了


-- 
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-unsubscribe@dubbo.apache.org

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



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


[GitHub] [dubbo] chickenlj commented on issue #8325: Dubbo 2.7.12 consumer没有配置retries时,没有使用provider配置的retries

Posted by GitBox <gi...@apache.org>.
chickenlj commented on issue #8325:
URL: https://github.com/apache/dubbo/issues/8325#issuecomment-953584335


   ![image](https://user-images.githubusercontent.com/18097545/139209406-3d627879-9400-4d45-834f-9c949c5d84ef.png)
   
   OverrideDirectoryUrl其实是完全工作在消费端,不应该感知到后端 Invoker 具体的provider示例层面的配置;当前是随机选取了一个 provider 的 retries 配置覆盖到了集群上


-- 
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-unsubscribe@dubbo.apache.org

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



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


[GitHub] [dubbo] chickenlj commented on issue #8325: Dubbo 2.7.12 consumer没有配置retries时,没有使用provider配置的retries

Posted by GitBox <gi...@apache.org>.
chickenlj commented on issue #8325:
URL: https://github.com/apache/dubbo/issues/8325#issuecomment-953576106


   > PS:
   > 
   > 1. 2.5.10、2.6.10无此问题
   > 2. 2.7.12下,dubbo.provider.cluster=failfast也是同样
   > 
   > 原因:2.7下org.apache.dubbo.registry.integration.RegistryDirectory#mergeUrl中,将提供者参数合并到overrideDirectoryUrl的代码被去掉了。
   > 
   > 撇开问题本身,这里其实有点尴尬的,因为retries、cluster更像是对一个服务所有提供者维度的,而不是针对一个服务具体某个提供者维度的参数。比如,一个10个提供者,它们注册的retries、cluster值不同。。
   
   我认为我们应该对能支持的场景做一些限制,不太可能无限的对所有可能的部署场景都提供支持。比如 `一个10个提供者,它们注册的retries、cluster值不同` 这种情形在 registryes应该就不能被支持,因为 retries 在框架中是工作在 ClusterInvoker - 也就是集群层面。


-- 
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-unsubscribe@dubbo.apache.org

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



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


[GitHub] [dubbo] CrazyHZM commented on issue #8325: Dubbo 2.7.12 consumer没有配置retries时,没有使用provider配置的retries

Posted by GitBox <gi...@apache.org>.
CrazyHZM commented on issue #8325:
URL: https://github.com/apache/dubbo/issues/8325#issuecomment-954290310


   Resolved ini #9147


-- 
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-unsubscribe@dubbo.apache.org

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



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


[GitHub] [dubbo] chickenlj commented on issue #8325: Dubbo 2.7.12 consumer没有配置retries时,没有使用provider配置的retries

Posted by GitBox <gi...@apache.org>.
chickenlj commented on issue #8325:
URL: https://github.com/apache/dubbo/issues/8325#issuecomment-953583050


   ![image](https://user-images.githubusercontent.com/18097545/139209406-3d627879-9400-4d45-834f-9c949c5d84ef.png)
   
   OverrideDirectoryUrl其实是完全工作在消费端,不应该感知到后端 Invoker 具体的provider示例层面的配置;当前是随机选取了一个 provider 的 retries 配置覆盖到了集群上


-- 
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-unsubscribe@dubbo.apache.org

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



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


[GitHub] [dubbo] zhangyz-hd commented on issue #8325: Dubbo 2.7.12 consumer没有配置retries时,没有使用provider配置的retries

Posted by GitBox <gi...@apache.org>.
zhangyz-hd commented on issue #8325:
URL: https://github.com/apache/dubbo/issues/8325#issuecomment-883976631


   PS:
   1. 2.5.10、2.6.10无此问题
   2. 2.7.12下,dubbo.provider.cluster=failfast也是同样
   
   原因:2.7下org.apache.dubbo.registry.integration.RegistryDirectory#mergeUrl中,将提供者参数合并到overrideDirectoryUrl的代码被去掉了。
   
   ----
   
   撇开问题本身,这里其实有点尴尬的,因为retries、cluster更像是对一个服务所有提供者维度的,而不是针对一个服务具体某个提供者维度的参数。比如,一个10个提供者,它们注册的retries、cluster值不同。。


-- 
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-unsubscribe@dubbo.apache.org

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



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


[GitHub] [dubbo] CrazyHZM closed issue #8325: Dubbo 2.7.12 consumer没有配置retries时,没有使用provider配置的retries

Posted by GitBox <gi...@apache.org>.
CrazyHZM closed issue #8325:
URL: https://github.com/apache/dubbo/issues/8325


   


-- 
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-unsubscribe@dubbo.apache.org

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



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