apache / apache/dubbo

No provider available using dubbo-registry-dns and version=*

Open
#8,680 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
41.6k
Forks
26.4k
Avg merge
15h 13m
Merged PRs (30d)
4

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.