<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.7</li>
<li>Operating System version: centos6.9</li>
<li>Java version: jdk1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">生产者maven依赖</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;dependency&gt;
	&lt;groupId&gt;org.apache.dubbo&lt;/groupId&gt;
	&lt;artifactId&gt;dubbo&lt;/artifactId&gt;
	&lt;version&gt;2.7.7&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
	&lt;groupId&gt;org.apache.curator&lt;/groupId&gt;
	&lt;artifactId&gt;curator-client&lt;/artifactId&gt;
	&lt;version&gt;4.2.0&lt;/version&gt;
&lt;/dependency&gt;"><pre class="notranslate"><code class="notranslate">&lt;dependency&gt;
	&lt;groupId&gt;org.apache.dubbo&lt;/groupId&gt;
	&lt;artifactId&gt;dubbo&lt;/artifactId&gt;
	&lt;version&gt;2.7.7&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
	&lt;groupId&gt;org.apache.curator&lt;/groupId&gt;
	&lt;artifactId&gt;curator-client&lt;/artifactId&gt;
	&lt;version&gt;4.2.0&lt;/version&gt;
&lt;/dependency&gt;
</code></pre></div>
<p dir="auto">消费者maven依赖</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;dependency&gt;
        &lt;groupId&gt;com.alibaba&lt;/groupId&gt;
        &lt;artifactId&gt;dubbo&lt;/artifactId&gt;
	&lt;version&gt;2.5.3&lt;/version&gt;
&lt;/dependency&gt;"><pre class="notranslate"><code class="notranslate">&lt;dependency&gt;
        &lt;groupId&gt;com.alibaba&lt;/groupId&gt;
        &lt;artifactId&gt;dubbo&lt;/artifactId&gt;
	&lt;version&gt;2.5.3&lt;/version&gt;
&lt;/dependency&gt;
</code></pre></div>
<p dir="auto">提供多版本服务</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="  &lt;dubbo:service interface=&quot;com.aaa.bbb.ccc&quot; ref=&quot;xxx1&quot; version=&quot;1.0.0&quot;   /&gt;
  &lt;dubbo:service interface=&quot;com.aaa.bbb.ccc&quot; ref=&quot;xxx2&quot; version=&quot;2.0.0&quot;   /&gt;"><pre class="notranslate"><code class="notranslate">  &lt;dubbo:service interface="com.aaa.bbb.ccc" ref="xxx1" version="1.0.0"   /&gt;
  &lt;dubbo:service interface="com.aaa.bbb.ccc" ref="xxx2" version="2.0.0"   /&gt;
</code></pre></div>
<p dir="auto">消费者调用3.0.0<br>
&lt;dubbo:reference id="idxxx" interface="com.aaa.bbb.ccc" version="2.0.0"/&gt;</p>
<p dir="auto">低版本2.5.3调用高本版2.7.7报错信息：<br>
Service not found: com.aaa.bbb.ccc2,test.</p>
<p dir="auto">断点观察：<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/18319674/93572278-366b5280-f9c8-11ea-92bf-ff83fdfc8e8c.png"><img src="https://user-images.githubusercontent.com/18319674/93572278-366b5280-f9c8-11ea-92bf-ff83fdfc8e8c.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">这个方法的传入path 是com.aaa.bbb.ccc2<br>
而serviceDescriptor中this.services的服务中的key只有两种：<br>
com.aaa.bbb.ccc<br>
com.aaa.bbb.ccc2:2.0.0</p>
<p dir="auto">初步判断是duboo版本不兼容 消费者也升级为2.7.7<br>
发现调用成功了<br>
低版本调用高版本怎么可以兼容</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.6</li>
<li>Operating System version: mac os</li>
<li>Java version: 1.8.0_221</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">i want to test FileSystemServiceDiscovery, i test dubbo-demo-annotation-consumer and dubbo-demo-annotation-provider<br>
i modify some config, like</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="provider : Application.java
registryConfig.setAddress(&quot;zookeeper://127.0.0.1:2181&quot;); 
&gt;&gt;&gt;
registryConfig.setAddress(&quot;file:///Users/frankwang/serviceDiscover?registry-type=service&quot;);"><pre class="notranslate"><code class="notranslate">provider : Application.java
registryConfig.setAddress("zookeeper://127.0.0.1:2181"); 
&gt;&gt;&gt;
registryConfig.setAddress("file:///Users/frankwang/serviceDiscover?registry-type=service");
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="consumer: dubbo-consumer.properties
dubbo.registry.address=zookeeper://127.0.0.1:2181
&gt;&gt;&gt;
dubbo.registry.address=file:///Users/frankwang/serviceDiscover?registry-type=service"><pre class="notranslate"><code class="notranslate">consumer: dubbo-consumer.properties
dubbo.registry.address=zookeeper://127.0.0.1:2181
&gt;&gt;&gt;
dubbo.registry.address=file:///Users/frankwang/serviceDiscover?registry-type=service
</code></pre></div>
<p dir="auto">provider can start ok, but the consumer cannot start and the error is</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[01/05/20 17:40:16:273 CST] DubboShutdownHook  INFO listener.LoggingEventListener:  [DUBBO] Dubbo Service has been destroyed., dubbo version: , current host: 192.168.1.4
Exception in thread &quot;main&quot; org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'demoServiceComponent': Injection of @Reference dependencies is failed; nested exception is java.lang.IllegalStateException: Failed to check the status of the service org.apache.dubbo.demo.DemoService. No provider available for the service org.apache.dubbo.demo.DemoService from the url service-discovery-registry:///Users/frankwang/serviceDiscover?application=dubbo-demo-annotation-consumer&amp;dubbo=2.0.2&amp;init=false&amp;interface=org.apache.dubbo.demo.DemoService&amp;methods=sayHello,sayHelloAsync&amp;pid=3599&amp;register.ip=192.168.1.4&amp;side=consumer&amp;sticky=false&amp;timestamp=1588326012293 to the consumer 192.168.1.4 use dubbo version 
	at com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessor.postProcessPropertyValues(AbstractAnnotationBeanPostProcessor.java:146)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1268)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
	at org.springframework.context.annotation.AnnotationConfigApplicationContext.&lt;init&gt;(AnnotationConfigApplicationContext.java:84)
	at org.apache.dubbo.demo.consumer.Application.main(Application.java:36)
Caused by: java.lang.IllegalStateException: Failed to check the status of the service org.apache.dubbo.demo.DemoService. No provider available for the service org.apache.dubbo.demo.DemoService from the url service-discovery-registry:///Users/frankwang/serviceDiscover?application=dubbo-demo-annotation-consumer&amp;dubbo=2.0.2&amp;init=false&amp;interface=org.apache.dubbo.demo.DemoService&amp;methods=sayHello,sayHelloAsync&amp;pid=3599&amp;register.ip=192.168.1.4&amp;side=consumer&amp;sticky=false&amp;timestamp=1588326012293 to the consumer 192.168.1.4 use dubbo version 
	at org.apache.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:349)
	at org.apache.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:258)
	at org.apache.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:158)
	at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.getOrCreateProxy(ReferenceAnnotationBeanPostProcessor.java:274)
	at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.doGetInjectedBean(ReferenceAnnotationBeanPostProcessor.java:143)
	at com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessor.getInjectedObject(AbstractAnnotationBeanPostProcessor.java:359)
	at com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessor$AnnotatedFieldElement.inject(AbstractAnnotationBeanPostProcessor.java:539)
	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
	at com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessor.postProcessPropertyValues(AbstractAnnotationBeanPostProcessor.java:142)
	... 12 more"><pre class="notranslate"><code class="notranslate">[01/05/20 17:40:16:273 CST] DubboShutdownHook  INFO listener.LoggingEventListener:  [DUBBO] Dubbo Service has been destroyed., dubbo version: , current host: 192.168.1.4
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'demoServiceComponent': Injection of @Reference dependencies is failed; nested exception is java.lang.IllegalStateException: Failed to check the status of the service org.apache.dubbo.demo.DemoService. No provider available for the service org.apache.dubbo.demo.DemoService from the url service-discovery-registry:///Users/frankwang/serviceDiscover?application=dubbo-demo-annotation-consumer&amp;dubbo=2.0.2&amp;init=false&amp;interface=org.apache.dubbo.demo.DemoService&amp;methods=sayHello,sayHelloAsync&amp;pid=3599&amp;register.ip=192.168.1.4&amp;side=consumer&amp;sticky=false&amp;timestamp=1588326012293 to the consumer 192.168.1.4 use dubbo version 
	at com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessor.postProcessPropertyValues(AbstractAnnotationBeanPostProcessor.java:146)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1268)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
	at org.springframework.context.annotation.AnnotationConfigApplicationContext.&lt;init&gt;(AnnotationConfigApplicationContext.java:84)
	at org.apache.dubbo.demo.consumer.Application.main(Application.java:36)
Caused by: java.lang.IllegalStateException: Failed to check the status of the service org.apache.dubbo.demo.DemoService. No provider available for the service org.apache.dubbo.demo.DemoService from the url service-discovery-registry:///Users/frankwang/serviceDiscover?application=dubbo-demo-annotation-consumer&amp;dubbo=2.0.2&amp;init=false&amp;interface=org.apache.dubbo.demo.DemoService&amp;methods=sayHello,sayHelloAsync&amp;pid=3599&amp;register.ip=192.168.1.4&amp;side=consumer&amp;sticky=false&amp;timestamp=1588326012293 to the consumer 192.168.1.4 use dubbo version 
	at org.apache.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:349)
	at org.apache.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:258)
	at org.apache.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:158)
	at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.getOrCreateProxy(ReferenceAnnotationBeanPostProcessor.java:274)
	at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.doGetInjectedBean(ReferenceAnnotationBeanPostProcessor.java:143)
	at com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessor.getInjectedObject(AbstractAnnotationBeanPostProcessor.java:359)
	at com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessor$AnnotatedFieldElement.inject(AbstractAnnotationBeanPostProcessor.java:539)
	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
	at com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessor.postProcessPropertyValues(AbstractAnnotationBeanPostProcessor.java:142)
	... 12 more
</code></pre></div>
<p dir="auto">i check the code , i find some code has some problem</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FileSystemServiceDiscovery.java
  @Override
    public List&lt;ServiceInstance&gt; getInstances(String serviceName) {
        return dynamicConfiguration.getConfigKeys(DEFAULT_GROUP)
                .stream()
                .map(serviceInstanceId -&gt; dynamicConfiguration.getConfig(serviceInstanceId, serviceName))
                .map(content -&gt; JSON.parseObject(content, DefaultServiceInstance.class))
                .collect(Collectors.toList());
    }"><pre class="notranslate"><code class="notranslate">FileSystemServiceDiscovery.java
  @Override
    public List&lt;ServiceInstance&gt; getInstances(String serviceName) {
        return dynamicConfiguration.getConfigKeys(DEFAULT_GROUP)
                .stream()
                .map(serviceInstanceId -&gt; dynamicConfiguration.getConfig(serviceInstanceId, serviceName))
                .map(content -&gt; JSON.parseObject(content, DefaultServiceInstance.class))
                .collect(Collectors.toList());
    }
</code></pre></div>
<p dir="auto">in this method , only from DEFAULT_GROUP subscribeURLs , but provider writer the service to other group, the provider use the project name as the default group, provider write the service to the default group, but when consumer start , it get the service from the DEFAULT_GROUP, not use the project name as the default group</p>