<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> 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.(<strong>I didn't see the file</strong>)</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Nacos: 1.2.1</li>
<li>SpringBoot version: 2.2.6</li>
<li>SpringCloudAlibaba: 2.2.1</li>
<li>Dubbo version: 2.7.6</li>
<li>Operating System version: Windows 10</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>Config the bootstrap.properties of srv1</li>
</ol>
<div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="spring.application.name=srv1-service
spring.main.allow-bean-definition-overriding=true
spring.cloud.nacos.discovery.server-addr=127.0.0.1:8848
spring.cloud.nacos.discovery.namespace=b50580e2-67d2-4903-b291-27323aa3adaf
spring.cloud.nacos.discovery.group=test"><pre class="notranslate"><span class="pl-k">spring.application.name</span>=srv1-service
<span class="pl-k">spring.main.allow-bean-definition-overriding</span>=true
<span class="pl-k">spring.cloud.nacos.discovery.server-addr</span>=127.0.0.1:8848
<span class="pl-k">spring.cloud.nacos.discovery.namespace</span>=b50580e2-67d2-4903-b291-27323aa3adaf
<span class="pl-k">spring.cloud.nacos.discovery.group</span>=test</pre></div>
<ol start="2" dir="auto">
<li>Config application.properties of srv1</li>
</ol>
<div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="server.port=9001
management.endpoints.web.exposure.include=*

dubbo.protocol.name=dubbo
dubbo.registry.address=spring-cloud://localhost
dubbo.consumer.check=false
dubbo.protocol.port=29001
dubbo.scan.base-packages=cn.cnscoo.scatest.srv1.apimpl
dubbo.cloud.subscribed-services=srv2-service
dubbo.application.qos-enable=true
dubbo.application.qos-port=19001"><pre class="notranslate"><span class="pl-k">server.port</span>=9001
<span class="pl-k">management.endpoints.web.exposure.include</span>=*

<span class="pl-k">dubbo.protocol.name</span>=dubbo
<span class="pl-k">dubbo.registry.address</span>=spring-cloud://localhost
<span class="pl-k">dubbo.consumer.check</span>=false
<span class="pl-k">dubbo.protocol.port</span>=29001
<span class="pl-k">dubbo.scan.base-packages</span>=cn.cnscoo.scatest.srv1.apimpl
<span class="pl-k">dubbo.cloud.subscribed-services</span>=srv2-service
<span class="pl-k">dubbo.application.qos-enable</span>=true
<span class="pl-k">dubbo.application.qos-port</span>=19001</pre></div>
<ol start="3" dir="auto">
<li>Config another service named srv2 same as srv1 except ports, and them subscribed each other.</li>
<li>Startup both services.</li>
<li>The mutual invocation of services is normal.</li>
<li>Connect the dubbo telnet or qos telnet and execute <code class="notranslate">ls</code> (<code class="notranslate">ls -l</code>)</li>
</ol>
<h3 dir="auto">Expected Result</h3>
<p dir="auto"><strong>Qos:</strong></p>
<p dir="auto">As Provider side:<br>
+-----------------------------------------------------------------------+---+<br>
|                         Provider Service Name                         |PUB|<br>
+-----------------------------------------------------------------------+---+<br>
|srv2-service/com.alibaba.cloud.dubbo.service.DubboMetadataService:1.0.0| Y |<br>
+-----------------------------------------------------------------------+---+<br>
|                   cn.cnscoo.scatest.srv2.api.Srv2Api                  | Y |<br>
+-----------------------------------------------------------------------+---+<br>
As Consumer side:<br>
+-----------------------------------------------------------------------+---+<br>
|                         Consumer Service Name                         |NUM|<br>
+-----------------------------------------------------------------------+---+<br>
|                   cn.cnscoo.scatest.srv1.api.Srv1Api                  | 1 |<br>
+-----------------------------------------------------------------------+---+<br>
|srv1-service/com.alibaba.cloud.dubbo.service.DubboMetadataService:1.0.0| 1 |<br>
+-----------------------------------------------------------------------+---+</p>
<p dir="auto"><strong>Dubbo:</strong></p>
<p dir="auto">PROVIDER:<br>
srv2-service/com.alibaba.cloud.dubbo.service.DubboMetadataService:1.0.0 -&gt;  published: Y<br>
cn.cnscoo.scatest.srv2.api.Srv2Api -&gt;  published: Y<br>
CONSUMER:<br>
cn.cnscoo.scatest.srv1.api.Srv1Api -&gt;  addresses: 1srv1-<br>
service/com.alibaba.cloud.dubbo.service.DubboMetadataService:1.0.0 -&gt;  addresses: 1</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto"><strong>Qos:</strong></p>
<p dir="auto">As Provider side:<br>
+-----------------------------------------------------------------------+---+<br>
|                         Provider Service Name                         |PUB|<br>
+-----------------------------------------------------------------------+---+<br>
|srv2-service/com.alibaba.cloud.dubbo.service.DubboMetadataService:1.0.0| N |<br>
+-----------------------------------------------------------------------+---+<br>
|                   cn.cnscoo.scatest.srv2.api.Srv2Api                  | N |<br>
+-----------------------------------------------------------------------+---+<br>
As Consumer side:<br>
+-----------------------------------------------------------------------+---+<br>
|                         Consumer Service Name                         |NUM|<br>
+-----------------------------------------------------------------------+---+<br>
|                   cn.cnscoo.scatest.srv1.api.Srv1Api                  | 0 |<br>
+-----------------------------------------------------------------------+---+<br>
|srv1-service/com.alibaba.cloud.dubbo.service.DubboMetadataService:1.0.0| 0 |<br>
+-----------------------------------------------------------------------+---+</p>
<p dir="auto"><strong>Dubbo:</strong></p>
<p dir="auto">PROVIDER:<br>
srv2-service/com.alibaba.cloud.dubbo.service.DubboMetadataService:1.0.0 -&gt;  published: N<br>
cn.cnscoo.scatest.srv2.api.Srv2Api -&gt;  published: N<br>
CONSUMER:<br>
cn.cnscoo.scatest.srv1.api.Srv1Api -&gt;  addresses: 0srv1-<br>
service/com.alibaba.cloud.dubbo.service.DubboMetadataService:1.0.0 -&gt;  addresses: 0</p>
<h3 dir="auto">Question</h3>
<p dir="auto">Why I can't get the number of online services?</p>
<p dir="auto">I find this was not a problem in version 2.7.4.1.</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">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>提交PR，Travis CI build failed，原因为单元测试不通过<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/33019873/80856713-bcd40180-8c7e-11ea-8a26-d50021587e85.png"><img src="https://user-images.githubusercontent.com/33019873/80856713-bcd40180-8c7e-11ea-8a26-d50021587e85.png" alt="image" style="max-width: 100%;"></a></li>
<li>单元测试要求直接报异常<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/33019873/80856717-d412ef00-8c7e-11ea-88a3-620b86ddecbe.png"><img src="https://user-images.githubusercontent.com/33019873/80856717-d412ef00-8c7e-11ea-88a3-620b86ddecbe.png" alt="image" style="max-width: 100%;"></a></li>
<li>5月1号解决[<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="587468040" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/5916" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/5916/hovercard" href="https://github.com/apache/dubbo/issues/5916">#5916</a>]时，将默认方法修改了，现在不会报异常出来<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/33019873/80856741-0de3f580-8c7f-11ea-8bc8-c527e78d9e04.png"><img src="https://user-images.githubusercontent.com/33019873/80856741-0de3f580-8c7f-11ea-8bc8-c527e78d9e04.png" alt="image" style="max-width: 100%;"></a></li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">Travis CI build 可以通过</p>