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/11/26 06:34:25 UTC

[GitHub] [dubbo] feng996 opened a new issue #9322: tri使用多注册中心问题

feng996 opened a new issue #9322:
URL: https://github.com/apache/dubbo/issues/9322


   <!-- 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.0.4
   * Operating System version: Ubuntu 18.04
   * Java version: 11
   
   ### Steps to reproduce this issue
   
   consumer引用多注册中心的provider,只有一个provider能使用
   debug发现,其他的reference在设置serviceUrls时(ServiceInstancesChangedListener#onEvent)拿不到MetadataInfo
   多配置中心没有生效。实际MetadataReportInstance只持有一个MetadataReport。
   
   通过MetadataReportInstance#init发现
   ```
    if (!init.compareAndSet(false, true)) {
               return;
    }
   ```
   只会init一次
   为什么会这么设计呢?
   
   ```
   DefaultApplicationDeployer#startMetadataCenter里关于配置中心的设置
   
   for (MetadataReportConfig metadataReportConfig : metadataReportConfigs) {
               ConfigValidationUtils.validateMetadataConfig(metadataReportConfig);
               if (!metadataReportConfig.isValid()) {
                   logger.info("Ignore invalid metadata-report config: " + metadataReportConfig);
                   continue;
               }
               metadataReportInstance.init(metadataReportConfig);
    }
   ```
   
   


-- 
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] feng996 commented on issue #9322: tri使用多注册中心问题

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


   > 
   
   是的,应该是服务发现的问题,接口级可以通过group来区分同名接口的通知,应用级group都是default不可修改,所以就会有通知的问题。


-- 
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] feng996 commented on issue #9322: tri使用多注册中心问题

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


   应用级服务发现时,consumer多注册中心使用同名的provider,某个注册中心的服务下线,会通知所有的registry,导致所有的reference都失效。重启后除了这个注册中心的服务可用,其他服务不可用。


-- 
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] EarthChen commented on issue #9322: tri使用多注册中心问题

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


   看你的描述 应该tri 协议导致的把?
   因为对于服务注册和发现 不在协议层处理。


-- 
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 #9322: tri使用多注册中心问题

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


   >if (!init.compareAndSet(false, true)) {
               return;
    }
   
   
   该问题将在 3.0.6 版本中修复


-- 
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 #9322: tri使用多注册中心问题

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


   当前参见 3.0-metadata-refactor 分支


-- 
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 closed issue #9322: tri使用多注册中心问题

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


   


-- 
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] EarthChen edited a comment on issue #9322: tri使用多注册中心问题

Posted by GitBox <gi...@apache.org>.
EarthChen edited a comment on issue #9322:
URL: https://github.com/apache/dubbo/issues/9322#issuecomment-980510016


   看你的描述 应该不是 tri 协议导致的把?
   因为对于服务注册和发现 不在协议层处理。也就是说,如果描述的现象存在,那就是个共性问题


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