<p dir="auto">I have searched the issues of this repository and believe that this is not a duplicate.<br>
I have checked the FAQ of this repository and believe that this is not a duplicate.</p>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.5</li>
<li>Operating System version:CentOS 7.6</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>cd dubbo-dubbo-2.7.5/dubbo-registry/dubbo-registry-consul/</li>
<li>mvn install</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">BUILD SUCCESS</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<p dir="auto">[INFO] -------------------------------------------------------<br>
[INFO]  T E S T S<br>
[INFO] -------------------------------------------------------<br>
[INFO] Running org.apache.dubbo.registry.consul.ConsulRegistryTest<br>
log4j:WARN No appenders could be found for logger (org.apache.dubbo.common.logger.LoggerFactory).<br>
log4j:WARN Please initialize the log4j system properly.<br>
log4j:WARN See <a href="http://logging.apache.org/log4j/1.2/faq.html#noconfig" rel="nofollow">http://logging.apache.org/log4j/1.2/faq.html#noconfig</a> for more info.<br>
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".<br>
SLF4J: Defaulting to no-operation (NOP) logger implementation<br>
SLF4J: See <a href="http://www.slf4j.org/codes.html#StaticLoggerBinder" rel="nofollow">http://www.slf4j.org/codes.html#StaticLoggerBinder</a> for further details.<br>
[ERROR] Tests run: 5, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 0.924 s &lt;&lt;&lt; FAILURE! - in org.apache.dubbo.registry.consul.ConsulRegistryTest<br>
[ERROR] testAvailable  Time elapsed: 0.876 s  &lt;&lt;&lt; ERROR!<br>
java.net.UnknownHostException: releases.hashicorp.com<br>
at org.apache.dubbo.registry.consul.ConsulRegistryTest.setUp(ConsulRegistryTest.java:54)</p>
<p dir="auto">[ERROR] testRegister  Time elapsed: 0.003 s  &lt;&lt;&lt; ERROR!<br>
java.net.UnknownHostException: releases.hashicorp.com<br>
at org.apache.dubbo.registry.consul.ConsulRegistryTest.setUp(ConsulRegistryTest.java:54)</p>
<p dir="auto">[ERROR] testStatusChecker  Time elapsed: 0.002 s  &lt;&lt;&lt; ERROR!<br>
java.net.UnknownHostException: releases.hashicorp.com<br>
at org.apache.dubbo.registry.consul.ConsulRegistryTest.setUp(ConsulRegistryTest.java:54)</p>
<p dir="auto">[ERROR] testSubscribe  Time elapsed: 0.003 s  &lt;&lt;&lt; ERROR!<br>
java.net.UnknownHostException: releases.hashicorp.com<br>
at org.apache.dubbo.registry.consul.ConsulRegistryTest.setUp(ConsulRegistryTest.java:54)</p>
<p dir="auto">[ERROR] testLookup  Time elapsed: 0.003 s  &lt;&lt;&lt; ERROR!<br>
java.net.UnknownHostException: releases.hashicorp.com<br>
at org.apache.dubbo.registry.consul.ConsulRegistryTest.setUp(ConsulRegistryTest.java:54)</p>
<p dir="auto">[INFO]<br>
[INFO] Results:<br>
[INFO]<br>
[ERROR] Errors:<br>
[ERROR]   ConsulRegistryTest.setUp:54 » UnknownHost releases.hashicorp.com<br>
[ERROR]   ConsulRegistryTest.setUp:54 » UnknownHost releases.hashicorp.com<br>
[ERROR]   ConsulRegistryTest.setUp:54 » UnknownHost releases.hashicorp.com<br>
[ERROR]   ConsulRegistryTest.setUp:54 » UnknownHost releases.hashicorp.com<br>
[ERROR]   ConsulRegistryTest.setUp:54 » UnknownHost releases.hashicorp.com<br>
[INFO]<br>
[ERROR] Tests run: 5, Failures: 0, Errors: 5, Skipped: 0<br>
[INFO]<br>
[INFO] ------------------------------------------------------------------------<br>
[INFO] BUILD FAILURE<br>
[INFO] ------------------------------------------------------------------------<br>
[INFO] Total time:  5.487 s<br>
[INFO] Finished at: 2020-03-28T07:34:42+08:00<br>
[INFO] ------------------------------------------------------------------------<br>
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on project dubbo-registry-consul: There are test failures.<br>
[ERROR]<br>
[ERROR] Please refer to /home/Dubbo/dubbo-dubbo-2.7.5/dubbo-registry/dubbo-registry-consul/target/surefire-reports for the individual test results.<br>
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.<br>
[ERROR] -&gt; [Help 1]<br>
[ERROR]<br>
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.<br>
[ERROR] Re-run Maven using the -X switch to enable full debug logging.<br>
[ERROR]<br>
[ERROR] For more information about the errors and possible solutions, please read the following articles:<br>
[ERROR] [Help 1] <a href="http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExceptio" rel="nofollow">http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExceptio</a></p>
<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" checked=""> 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.8</li>
<li>Operating System version: xxx</li>
<li>Java version: 1.8</li>
</ul>
<p dir="auto">When the service is registered in nacos, it is found that the nacos configuration center has dubbo metadata. After using dubbo.application.metadata-type = local, there is still a mapping data. Can this be controlled?</p>
<p dir="auto">服务注册到nacos中，发现nacos配置中心有dubbo的元数据，使用了dubbo.application.metadata-type=local 后仍然会有一条mapping的数据，这个是否可以控制呢？</p>
<p dir="auto">未使用dubbo.application.metadata-type=local 时有3条数据<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26211950/91707521-8073cc00-ebb2-11ea-84c1-11a2709eef73.png"><img src="https://user-images.githubusercontent.com/26211950/91707521-8073cc00-ebb2-11ea-84c1-11a2709eef73.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">使用dubbo.application.metadata-type=local 后仍然有一条数据<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26211950/91707738-d9dbfb00-ebb2-11ea-9605-4e3e723415e4.png"><img src="https://user-images.githubusercontent.com/26211950/91707738-d9dbfb00-ebb2-11ea-9605-4e3e723415e4.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">从《<a href="https://mercyblitz.github.io/2020/05/11/Apache-Dubbo-%E6%9C%8D%E5%8A%A1%E8%87%AA%E7%9C%81%E6%9E%B6%E6%9E%84%E8%AE%BE%E8%AE%A1/" rel="nofollow">dubbo 服务自省架构设计</a>》这篇文章看到元数据的存储模式推荐使用本地存储，为什么dubbo默认会把元数据存到配置中心呢？这个可以控制吗？<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26211950/91707876-0e4fb700-ebb3-11ea-891e-1277073ab763.png"><img src="https://user-images.githubusercontent.com/26211950/91707876-0e4fb700-ebb3-11ea-891e-1277073ab763.png" alt="image" style="max-width: 100%;"></a></p>