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/08/22 04:30:20 UTC

[GitHub] [dubbo] caijixmx opened a new issue #8565: dubbo.registry.default属性配置无法读取到

caijixmx opened a new issue #8565:
URL: https://github.com/apache/dubbo/issues/8565


   - [ ] 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: 3.0.1、3.0.2
   * Operating System version: xxx
   * Java version: xxx
   
   ### Steps to reproduce this issue
   
   1. 配置dubbo.registry.default=false
   2. 运行读取到的RegistryConfig中的isDefault属性为null
   3. xxx
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Result
   
   What do you expected from the above steps?
   当配置了该配置项,其对应配置类中的属性为对应的值false或是true,而不是null
   
   ### Actual Result
   
   What actually happens?
   
   If there is an exception, please attach the exception trace:
   
   ```
   Just put your stack trace here!
   ```
   


-- 
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 #8565: dubbo.registry.default属性配置无法读取到

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


   No feedback for a long time, please close the issue temporarily. If there is still a problem, you can reopen it.


-- 
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 #8565: dubbo.registry.default属性配置无法读取到

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


   需要提供一个可以复现的示例,或者具体描述下如何配置的


-- 
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] BurningCN commented on issue #8565: dubbo.registry.default属性配置无法读取到

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


   这个参数目前看来不支持配置,`AbstractConfig#isDefault`方法上面的注解为
   `@Parameter(excluded = true, attribute = false)`
   如果attribute=false,那么会在调用 refresh()/getMetadata()/equals()/toString() 这些方法的时候忽略该属性的处理。
   
   调用链路如下:
   DefaultApplicationDeployer#useRegistryAsConfigCenterIfNecessary
    ->AbstractConfigManager#loadConfigsOfTypeFromProps
      ->AbstractConfig#refresh
        ->AbstractConfig#assignProperties
          ->isIgnoredAttribute
             ->parameter.attribute()
        


-- 
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 #8565: dubbo.registry.default属性配置无法读取到

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


   


-- 
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] caijixmx commented on issue #8565: dubbo.registry.default属性配置无法读取到

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


   > 需要提供一个可以复现的示例,或者具体描述下如何配置的
   
   在application.properties文件中配置了dubbo.registry.default=true   然后debug启动到解析完配置属性后,发现其他配置的字段均有值,但就这个配置的 isDefault属性是null;                                     
   我想验证的是DubboBootstrap类中的
            useRegistryAsMetadataCenterIfNecessary 方法中的:
                     List<RegistryConfig> defaultRegistries = configManager.getDefaultRegistries();
             这一行,我获取到的RegistryConfig的属性中 “isDefault” 是null


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