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/04 11:56:11 UTC

[GitHub] [dubbo] AlenZhai opened a new issue #8416: Dubbo3.0.1无法通过URL获取CATEGORY参数的值

AlenZhai opened a new issue #8416:
URL: https://github.com/apache/dubbo/issues/8416


   - [ ] 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
   * Operating System version: Windwos 10
   * Java version: java8
   
   ### Steps to reproduce this issue
   
   1. 订阅 admin://192.168.56.1?category=providers,consumers&check=false&classifier=*&group=*&interface=*&version=*
      subscribe the address admin://192.168.56.1?category=providers,consumers&check=false&classifier=*&group=*&interface=*&version=*
   2. NotifyListener 接收到一个DubboServiceAddressURL 列表 
      NotifyListener  rec a list DubboServiceAddressURL 
   3. 我收到URL为 dubbo://192.168.56.1/com.alen.dubbo.provider.comm.service.XX?application=dubbo-consumer&category=consumers&check=false&dubbo=2.0.2&group=g-1&interface=com.alen.dubbo.provider.comm.service.ISayService&metadata-type=remote&methods=say&path=com.alen.dubbo.provider.comm.service.ISayService&pid=3888&protocol=dubbo&release=3.0.1&side=consumer&sticky=false&timestamp=1628075577836
      
    i want get CATEGORY parameter
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Result
   
   What do you expected from the above steps?
   我想获取 到 CATEGORY 参数 的值 consumers
   ### Actual Result
   实际获取到的值 为  providers
   What actually happens?
   `public String getParameter(String key) {
           // call corresponding methods directly, then we can remove the following if branches.
           if (GROUP_KEY.equals(key)) {
               return getGroup();
           } else if (VERSION_KEY.equals(key)) {
               return getVersion();
           } else if (APPLICATION_KEY.equals(key)) {
               return getRemoteApplication();
           } else if (SIDE_KEY.equals(key)) {
               return getSide();
           } else if (CATEGORY_KEY.equals(key)) {
               return getCategory();
           }`
   `@Override
       public String getCategory() {
           return PROVIDERS_CATEGORY;
       }`
   
   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] AlenZhai commented on issue #8416: Dubbo3.0.1无法通过URL获取CATEGORY参数的值

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


   我现在是订阅provider 和consumer 地址,取到的都是provider 不应该是和category中的参数一致吗?
   
   
   
   发自我的小米手机在 Albumen Kevin ***@***.***>,2021年8月11日 上午11:36写道:
   provider 过来的地址 category 是 provider 没问题吧
   
   —You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.
   [
   {
   ***@***.***": "http://schema.org",
   ***@***.***": "EmailMessage",
   "potentialAction": {
   ***@***.***": "ViewAction",
   "target": "https://github.com/apache/dubbo/issues/8416#issuecomment-896474059",
   "url": "https://github.com/apache/dubbo/issues/8416#issuecomment-896474059",
   "name": "View Issue"
   },
   "description": "View this Issue on GitHub",
   "publisher": {
   ***@***.***": "Organization",
   "name": "GitHub",
   "url": "https://github.com"
   }
   }
   ]


-- 
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 #8416: Dubbo3.0.1无法通过URL获取CATEGORY参数的值

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


   provider 过来的地址 category 是 provider 没问题吧


-- 
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] AlenZhai commented on issue #8416: Dubbo3.0.1无法通过URL获取CATEGORY参数的值

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


   我这边在修改dubbo-monitor-simple,这个项目默支持dubbo 2.X 我把dubbo升级到3.0.1后发现 所有节点都变成了provider 没有consumer了,我跟了一下代码发现,无法取到 category的参数
   
   
   
   发自我的小米手机在 Albumen Kevin ***@***.***>,2021年8月15日 下午5:59写道:
   
   
   provider 过来的地址 category 是 provider 没问题吧
   
   我收到的那个url是consumer 过来的不是 provider ,请注意 ?application=dubbo-consumer&category=consumers
   
   DubboServiceAddressURL 目前的定义是作为服务端地址推送的,能不能具体说一下为什么需要传递消费端的地址
   
   —You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.
   [
   {
   ***@***.***": "http://schema.org",
   ***@***.***": "EmailMessage",
   "potentialAction": {
   ***@***.***": "ViewAction",
   "target": "https://github.com/apache/dubbo/issues/8416#issuecomment-899025789",
   "url": "https://github.com/apache/dubbo/issues/8416#issuecomment-899025789",
   "name": "View Issue"
   },
   "description": "View this Issue on GitHub",
   "publisher": {
   ***@***.***": "Organization",
   "name": "GitHub",
   "url": "https://github.com"
   }
   }
   ]


-- 
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] AlenZhai commented on issue #8416: Dubbo3.0.1无法通过URL获取CATEGORY参数的值

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


   > 
   > 
   > > > provider 过来的地址 category 是 provider 没问题吧
   > > 
   > > 
   > > 我收到的那个url是consumer 过来的不是 provider ,请注意 ?application=dubbo-consumer&category=consumers
   > 
   > DubboServiceAddressURL 目前的定义是作为服务端地址推送的,能不能具体说一下为什么需要传递消费端的地址
   
   我这边在修改dubbo-monitor-simple,这个项目默支持dubbo 2.X 我把dubbo升级到3.0.1后发现 所有节点都变成了provider 没有consumer了,我跟了一下代码发现,无法取到 category的参数


-- 
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 #8416: Dubbo3.0.1无法通过URL获取CATEGORY参数的值

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


   > > provider 过来的地址 category 是 provider 没问题吧
   > 
   > 我收到的那个url是consumer 过来的不是 provider ,请注意 ?application=dubbo-consumer&category=consumers
   
   DubboServiceAddressURL 目前的定义是作为服务端地址推送的,能不能具体说一下为什么需要传递消费端的地址


-- 
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] AlenZhai commented on issue #8416: Dubbo3.0.1无法通过URL获取CATEGORY参数的值

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


   > 
   > 
   > provider 过来的地址 category 是 provider 没问题吧
   
   我收到的那个url是consumer 过来的不是 provider ,请注意 ?application=dubbo-consumer&category=consumers


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