You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "sadlay (via GitHub)" <gi...@apache.org> on 2023/03/20 15:24:41 UTC

[GitHub] [dubbo] sadlay opened a new issue, #11874: 动态配置在重启后不生效

sadlay opened a new issue, #11874:
URL: https://github.com/apache/dubbo/issues/11874

   <!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
   
   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 3.1.1
   * Operating System version: MacOS
   * Java version: 1.8
   
   ### Steps to reproduce this issue
   
   1. 动态配置
   
      ```yaml
      configVersion: v3.1
      scope: service
      key: cn.sadlay.dubbo.apple.api.AppleService
      enabled: true
      configs:
      - addresses: [0.0.0.0]
        side: consumer
        parameters:
          loadbalance: consistenthash
      ```
   
   2. 重启 **Consumer**
   
   3. 调用 **AppleService**,还是使用默认的轮训策略 **RandomLoadBalance** 
   
   4. 更新动态配置(添加换行,不更新具体内容), **ConsistentHashLoadBalance** 生效
   
   ### Expected Behavior
   
   重启后服务调用使用 **ConsistentHashLoadBalance** 负载均衡策略
   
   ### Actual Behavior
   
   重启后服务调用使用默认 **RandomLoadBalance** 负载均衡策略,动态配置失效
   


-- 
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.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] sadlay commented on issue #11874: 动态配置在重启后不生效

Posted by "sadlay (via GitHub)" <gi...@apache.org>.
sadlay commented on issue #11874:
URL: https://github.com/apache/dubbo/issues/11874#issuecomment-1476456856

   RegistryDirectory#subscribe(URL url)中,subscribe订阅更新逻辑先于ReferenceConfigurationListener拉取配置执行,导致包含在subscribe逻辑中的的overrideWithConfigurator方法中referenceConfigurationListener为空,而没有覆盖配置。
   
   @AlbumenJ 请问这个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-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


Re: [I] 动态配置在重启后不生效 [dubbo]

Posted by "CrazyHZM (via GitHub)" <gi...@apache.org>.
CrazyHZM closed issue #11874: 动态配置在重启后不生效
URL: https://github.com/apache/dubbo/issues/11874


-- 
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] AlbumenJ commented on issue #11874: 动态配置在重启后不生效

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ commented on issue #11874:
URL: https://github.com/apache/dubbo/issues/11874#issuecomment-1481060963

   这里应该有两个规则的处理点,一个是在 RegistryDirectory 另外是在 ServiceDiscoveryRegistryDirectory。
   按照通用一些的做法应该是订阅后马上推送一次最新的规则覆盖,这样可以保证规则是一直最新的。
   如果提前订阅规则再注册中心订阅可能导致一些非预期的时序问题。


-- 
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 #11874: 动态配置在重启后不生效

Posted by "chickenlj (via GitHub)" <gi...@apache.org>.
chickenlj commented on issue #11874:
URL: https://github.com/apache/dubbo/issues/11874#issuecomment-1596576406

   @sadlay 建议升级到 Dubbo 3.2 版本后使用流量管控功能,3.2 版本对着一部分内容做了大量增强。
   
   同时请保持 `configVersion:v3.0` 为固定值。


-- 
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