<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.5</li>
<li>Zookeeper version: 3.4.14</li>
<li>Operating System version: macos</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>按官方文档搭建provider，两种方式：annotation/xml</li>
<li>分别配置</li>
</ol>
<div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="    &lt;dubbo:metadata-report address=&quot;zookeeper://127.0.0.1:2181&quot;/&gt;"><pre class="notranslate">    &lt;<span class="pl-ent">dubbo</span><span class="pl-ent">:</span><span class="pl-ent">metadata-report</span> <span class="pl-e">address</span>=<span class="pl-s"><span class="pl-pds">"</span>zookeeper://127.0.0.1:2181<span class="pl-pds">"</span></span>/&gt;</pre></div>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="        @Bean
        public MetadataReportConfig metadataReportConfig() {
            MetadataReportConfig metadataReportConfig = new MetadataReportConfig();
            metadataReportConfig.setAddress(&quot;zookeeper://127.0.0.1:2181&quot;);
            return metadataReportConfig;
        }"><pre class="notranslate">        <span class="pl-c1">@</span><span class="pl-c1">Bean</span>
        <span class="pl-k">public</span> <span class="pl-smi">MetadataReportConfig</span> <span class="pl-s1">metadataReportConfig</span>() {
            <span class="pl-smi">MetadataReportConfig</span> <span class="pl-s1">metadataReportConfig</span> = <span class="pl-k">new</span> <span class="pl-smi">MetadataReportConfig</span>();
            <span class="pl-s1">metadataReportConfig</span>.<span class="pl-en">setAddress</span>(<span class="pl-s">"zookeeper://127.0.0.1:2181"</span>);
            <span class="pl-k">return</span> <span class="pl-s1">metadataReportConfig</span>;
        }</pre></div>
<ol start="3" dir="auto">
<li>应用正常启动</li>
<li>Consumer端正常调用</li>
<li>观察Zookeeper节点数据，元数据节点/dubbo/metadata 未创建</li>
</ol>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">元数据正常上报</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">元数据节点在Zookeeper上未创建，元数据未上报</p>
<blockquote>
<p dir="auto">将dubbo版本号更改为2.7.4.1、2.7.3，代码或配置未改动，元数据正常上报</p>
</blockquote>
<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/incubator-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/incubator-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.6.2</li>
<li>Operating System version: Mac 10.14</li>
<li>Java version: 1.8.0_172</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">run my project and let's spring.profiles.active=prod. I find the address of zooKeeper is default value(zookeeper://127.0.0.1:2181) in application.yml. but I expected result is zookeeper://127.0.0.1:2182. about detail configuration. please see provider/src/main/resources/application.yml</p>
<p dir="auto">github address: <a href="https://github.com/smallAttr/zk-dubbo-demo/tree/multi_profile">https://github.com/smallAttr/zk-dubbo-demo/tree/multi_profile</a></p>
<p dir="auto">and printf load dubbo configuration as same as expected result:<br>
dubbo configuration:CoreConfiguration(address=zookeeper://127.0.0.1:2182, client=zkclient)</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17873796/50206590-d4bb2600-03a6-11e9-91df-977690f3f8fc.png"><img src="https://user-images.githubusercontent.com/17873796/50206590-d4bb2600-03a6-11e9-91df-977690f3f8fc.png" alt="image" style="max-width: 100%;"></a></p>