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/02 11:13:24 UTC

[GitHub] [dubbo] JayeShen opened a new issue #9188: 项目使用dubbo-2.7.12,使用dubbo-admin-0.3.0设置的标签路由规则路径和项目中监听的路径不匹配,导致标签路由规则不生效

JayeShen opened a new issue #9188:
URL: https://github.com/apache/dubbo/issues/9188


   
   
   ### Environment
   
   * Dubbo version: 2.7.12
   * Operating System version: window10
   * Java version: 1.8
   
   使用dubbo-admin-0.3.0设置的标签路由规则路径为  /dubbo/dev/config/dubbo/gh-demo.tag-router
   项目中监听的路径为: /dubbo/config/dubbo/gh-demo.tag-router,导致标签路由规则不生效
   
   主要原因是dubbo-admin设置标签路由会带上registy.group,也就是环境,例如dev
   但是dubbo-2.7.12中tagRoute的监听类将group没有动态取值,而是取了一个枚举值:dubbo,导致无法使用registy.group区分配置环境
   
   
   


-- 
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] JayeShen edited a comment on issue #9188: 项目使用dubbo-2.7.12,使用dubbo-admin-0.3.0设置的标签路由规则路径和项目中监听的路径不匹配,导致标签路由规则不生效

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






-- 
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] haoyann commented on issue #9188: 项目使用dubbo-2.7.12,使用dubbo-admin-0.3.0设置的标签路由规则路径和项目中监听的路径不匹配,导致标签路由规则不生效

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






-- 
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] JayeShen edited a comment on issue #9188: 项目使用dubbo-2.7.12,使用dubbo-admin-0.3.0设置的标签路由规则路径和项目中监听的路径不匹配,导致标签路由规则不生效

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






-- 
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] JayeShen commented on issue #9188: 项目使用dubbo-2.7.12,使用dubbo-admin-0.3.0设置的标签路由规则路径和项目中监听的路径不匹配,导致标签路由规则不生效

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


   > ` admin.config-center.group` 可以不带环境,现在配置中心的 group 写死的 dubbo。
   
   1、这样的话,如果一个注册中心使用group分了环境的服务会公用一个标签路由配置文件,无法将测试和生产的配置隔离,容易出现问题。
   2、admin.config-center.group这个参数显得没有必要,放出来用户配置了,反而会导致配置路径错误。


-- 
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] JayeShen commented on issue #9188: 项目使用dubbo-2.7.12,使用dubbo-admin-0.3.0设置的标签路由规则路径和项目中监听的路径不匹配,导致标签路由规则不生效

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






-- 
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] JayeShen commented on issue #9188: 项目使用dubbo-2.7.12,使用dubbo-admin-0.3.0设置的标签路由规则路径和项目中监听的路径不匹配,导致标签路由规则不生效

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






-- 
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] JayeShen edited a comment on issue #9188: 项目使用dubbo-2.7.12,使用dubbo-admin-0.3.0设置的标签路由规则路径和项目中监听的路径不匹配,导致标签路由规则不生效

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






-- 
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] JayeShen commented on issue #9188: 项目使用dubbo-2.7.12,使用dubbo-admin-0.3.0设置的标签路由规则路径和项目中监听的路径不匹配,导致标签路由规则不生效

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


   > 你 dubbo-admin 配置中心的地址是怎么填写的?group 要指定为 dubbo 或者不填写,这个 root 是由 group 拼接来的。
   
   admin.registry.group=dubbo/dev
   admin.config-center.group=dubbo/dev
   admin.metadata-report.group=dubbo/dev
   
   我认为这个group就是去在一个注册中心中隔离环境的,所以我的group是带环境的


-- 
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] haoyann commented on issue #9188: 项目使用dubbo-2.7.12,使用dubbo-admin-0.3.0设置的标签路由规则路径和项目中监听的路径不匹配,导致标签路由规则不生效

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


   dubbo-admin 是和 dubbo 的配置路径保证一致的,没看见哪里加了环境进去。
   ![image](https://user-images.githubusercontent.com/43994656/140000382-8e927e08-a18d-4b2a-b4c7-3a049c3192ce.png)
   


-- 
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] haoyann commented on issue #9188: 项目使用dubbo-2.7.12,使用dubbo-admin-0.3.0设置的标签路由规则路径和项目中监听的路径不匹配,导致标签路由规则不生效

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


   你 dubbo-admin 配置中心的地址是怎么填写的?group 要指定为 dubbo 或者不填写,这个 root 是由 group 拼接来的。


-- 
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] JayeShen commented on issue #9188: 项目使用dubbo-2.7.12,使用dubbo-admin-0.3.0设置的标签路由规则路径和项目中监听的路径不匹配,导致标签路由规则不生效

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


   > dubbo-admin 是和 dubbo 的配置路径保证一致的,没看见哪里加了环境进去。 ![image](https://user-images.githubusercontent.com/43994656/140000382-8e927e08-a18d-4b2a-b4c7-3a049c3192ce.png)
   
   昨天我是想传图片上来的,结果一直超时就没传,getNodePath这里进去的toRootDir会拼接一个root,就是这个环境


-- 
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] haoyann commented on issue #9188: 项目使用dubbo-2.7.12,使用dubbo-admin-0.3.0设置的标签路由规则路径和项目中监听的路径不匹配,导致标签路由规则不生效

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


   ` admin.config-center.group` 可以不带环境,现在配置中心的 group 写死的 dubbo。


-- 
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] haoyann commented on issue #9188: 项目使用dubbo-2.7.12,使用dubbo-admin-0.3.0设置的标签路由规则路径和项目中监听的路径不匹配,导致标签路由规则不生效

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






-- 
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] JayeShen edited a comment on issue #9188: 项目使用dubbo-2.7.12,使用dubbo-admin-0.3.0设置的标签路由规则路径和项目中监听的路径不匹配,导致标签路由规则不生效

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


   > 你 dubbo-admin 配置中心的地址是怎么填写的?group 要指定为 dubbo 或者不填写,这个 root 是由 group 拼接来的。
   
   admin.registry.group=dubbo/dev
   admin.config-center.group=dubbo/dev
   admin.metadata-report.group=dubbo/dev
   
   我认为这个group就是去在一个注册中心中隔离环境的,所以我的group是带环境的,
   如果我不带环境,我是无法拿到dubbo/dev节点下面注册的服务的


-- 
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] JayeShen edited a comment on issue #9188: 项目使用dubbo-2.7.12,使用dubbo-admin-0.3.0设置的标签路由规则路径和项目中监听的路径不匹配,导致标签路由规则不生效

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


   > ` admin.config-center.group` 可以不带环境,现在配置中心的 group 写死的 dubbo。
   
   1、这样的话,如果使用一个注册中心,使用group区分环境注册的服务会公用一个标签路由配置文件,无法将测试和生产的配置隔离,容易出现问题。
   2、admin.config-center.group这个参数显得没有必要,放出来用户配置了,反而会导致配置路径错误。


-- 
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] JayeShen commented on issue #9188: 项目使用dubbo-2.7.12,使用dubbo-admin-0.3.0设置的标签路由规则路径和项目中监听的路径不匹配,导致标签路由规则不生效

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






-- 
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] haoyann commented on issue #9188: 项目使用dubbo-2.7.12,使用dubbo-admin-0.3.0设置的标签路由规则路径和项目中监听的路径不匹配,导致标签路由规则不生效

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






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