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/09/05 01:27:39 UTC

[GitHub] [dubbo] YoKv opened a new issue #8680: No provider available using dubbo-registry-dns and version=*

YoKv opened a new issue #8680:
URL: https://github.com/apache/dubbo/issues/8680


   ### Environment
   
   * Dubbo version: 3.0.2.1
   * Operating System version: k8s
   * Java version: openjdk:11
   
   ### Steps to reproduce this issue
   
   1. maven dubbo-registry-dns dependency
   2. dubbo-provider @DubboService(version = "1.2.4", protocol = CommonConstants.DUBBO_PROTOCOL)
   3. dubbo-consumer @DubboReference(version = "*", protocol = CommonConstants.DUBBO_PROTOCOL, providedBy = "dubbo-provider")
   
   log 
   ```
   2021-09-05 01:11:06.496  INFO 1 --- [S-Poll-thread-1] .r.c.e.l.ServiceInstancesChangedListener :  [DUBBO] Notify service api.FooBarApi:*:dubbo with urls 0, dubbo version: 3.0.2.1, current host: 10.1.1.29
   2021-09-05 01:11:06.497  INFO 1 --- [S-Poll-thread-1] .d.r.c.ServiceDiscoveryRegistryDirectory :  [DUBBO] Received empty url list..., dubbo version: 3.0.2.1, current host: 10.1.1.29
   2
   ```
   
   
   when  consumer using '*'   version will cause  No provider available Exception
   
   
   ![微信截图_20210904234316](https://user-images.githubusercontent.com/15179941/132111901-39f7e625-bb50-4bbc-879f-1ddd06c80d8d.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] AlbumenJ commented on issue #8680: No provider available using dubbo-registry-dns and version=*

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


   `dubbo-registry-dns` 目前是需要配合 Kubernetes 环境部署的


-- 
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] YoKv commented on issue #8680: No provider available using dubbo-registry-dns and version=*

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


   > `dubbo-registry-dns` 目前是需要配合 Kubernetes 环境部署的
   
   这是远程debug Kubernetes 环境中的代码,这段代码问题在于`getAddresses`从map中获取url的key是通过@DubboReference中参数拼接的,如果version是'*',而serviceUrls中的key是准确的version,则获取不到符合条件的url


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