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

   ### Pre-check
   
   - [x] I am sure that all the content I provide is in English.
   
   
   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Apache Dubbo Component
   
   Java SDK (apache/dubbo)
   
   ### Dubbo Version
   
   dubbo version: 3.3.0,
   nacos:3.1.0
   dubbo-admin:0.6.0
   
   ### Steps to reproduce this issue
   
   **动态配置发布步骤:**
   1.在dubbo-admin面板上创建动态配置,服务降级,同步到nacos注册中心
   2.消费者会收到注册中心配置更改的日志输出,但是服务降级不生效.
   
   dubbo-admin配置例子:
   
   <img width="866" height="701" alt="Image" 
src="https://github.com/user-attachments/assets/42c08b39-08bc-4354-a894-c2fed9b63e12";
 />
   
   同步到nacos的例子:
   
   <img width="882" height="693" alt="Image" 
src="https://github.com/user-attachments/assets/ce8ebaac-9002-4481-a4cf-08064e14ff7f";
 />
   
   日志例子:
   10:35:59.072 [nacos.client.config.listener.task-0] INFO  
o.a.d.r.i.AbstractConfiguratorListener -  [DUBBO] Notification of overriding 
rule, change type is: ADDED, raw config content is:
    configVersion: v2.7
   configs:
   - addresses:
     - 0.0.0.0
     enabled: false
     parameters:
       timeout: 5003
       mock: force:return this is mock order,service down.
     side: consumer
   enabled: true
   key: com.friend.common.service.OrderService:1.0.0
   scope: service
   , dubbo version: 3.3.0, current host: 192.168.4.25
   
   这里的bug有2两个:
   1.dubbo-admin的配置不能设置config下的enabled为true, 同步到nacos会被强制设定为false,不生效
   2.dubbo-admin的配置同步到nacos时, 设定的版本号,没有自动配置到key里, 导致nacos手动发布新规则失效,
   
   手动修改后的生效配置:
   
   <img width="1321" height="770" alt="Image" 
src="https://github.com/user-attachments/assets/b6b47e34-3ef1-4007-820d-e8288b3bfc3d";
 />
   
   ### What you expected to happen
   
   1.dubbo-admin创建的动态配置yaml规则,enabled的值自动同步到nacos,不需要再手动修改.
   2.dubbo-admin创建的动态配置yaml规则,同步到nacos的key自动带上对应的版本号.
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request to fix on your own?
   
   - [ ] Yes I am willing to submit a pull request on my own!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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

Reply via email to