<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/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" checked=""> 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.7.2-SNAPSHOT</li>
<li>Operating System version: windows1</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public class RedisMetadataReport extends AbstractMetadataReport {

    private final static Logger logger = LoggerFactory.getLogger(RedisMetadataReport.class);

    final JedisPool pool;

    public RedisMetadataReport(URL url) {
        super(url);
        pool = new JedisPool(new JedisPoolConfig(), url.getHost(), url.getPort());
    }
}"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">RedisMetadataReport</span> <span class="pl-k">extends</span> <span class="pl-smi">AbstractMetadataReport</span> {

    <span class="pl-k">private</span> <span class="pl-k">final</span> <span class="pl-k">static</span> <span class="pl-smi">Logger</span> <span class="pl-s1">logger</span> = <span class="pl-smi">LoggerFactory</span>.<span class="pl-en">getLogger</span>(<span class="pl-smi">RedisMetadataReport</span>.<span class="pl-k">class</span>);

    <span class="pl-k">final</span> <span class="pl-smi">JedisPool</span> <span class="pl-s1">pool</span>;

    <span class="pl-k">public</span> <span class="pl-smi">RedisMetadataReport</span>(<span class="pl-smi">URL</span> <span class="pl-s1">url</span>) {
        <span class="pl-en">super</span>(<span class="pl-s1">url</span>);
        <span class="pl-s1">pool</span> = <span class="pl-k">new</span> <span class="pl-smi">JedisPool</span>(<span class="pl-k">new</span> <span class="pl-smi">JedisPoolConfig</span>(), <span class="pl-s1">url</span>.<span class="pl-en">getHost</span>(), <span class="pl-s1">url</span>.<span class="pl-en">getPort</span>());
    }
}</pre></div>
<p dir="auto">I see the construct method used <code class="notranslate">JedisPool</code>,<br>
<strong>if cluster ，how should  do？</strong></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.3</li>
<li>Operating System version:win7</li>
<li>Java version: jdk 8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>Create  a ReferenceConfig , and do not set MetadataReportConfig</li>
<li>Use ReferenceConfigCache to cache referenceConfig</li>
<li>Get referenceConfig from ReferenceConfigCache and use it to get reference instance for call.</li>
<li>do referenceConfig.get() frequently and invoke service .</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="   ReferenceConfig&lt;HelloBOMService&gt; referenceConfig = new ReferenceConfig();
    ApplicationConfig application = new ApplicationConfig(&quot;application&quot;);
    referenceConfig.setApplication(application);
    RegistryConfig registryConfig = new RegistryConfig(&quot;zookeeper://localhost:21170&quot;);
    referenceConfig.setInterface(HelloBOMService.class.getName());
    referenceConfig.setRegistry(registryConfig);
   
    //referenceConfig.setMetadataReportConfig();
      for (;;) {
          ReferenceConfigCache cache = ReferenceConfigCache.getCache();
          HelloBOMService service = cache.get(referenceConfig);
          SomeResponse response  = service.get(new SomeRequest());
          Thread.sleep(10);
      }"><pre class="notranslate"><code class="notranslate">   ReferenceConfig&lt;HelloBOMService&gt; referenceConfig = new ReferenceConfig();
    ApplicationConfig application = new ApplicationConfig("application");
    referenceConfig.setApplication(application);
    RegistryConfig registryConfig = new RegistryConfig("zookeeper://localhost:21170");
    referenceConfig.setInterface(HelloBOMService.class.getName());
    referenceConfig.setRegistry(registryConfig);
   
    //referenceConfig.setMetadataReportConfig();
      for (;;) {
          ReferenceConfigCache cache = ReferenceConfigCache.getCache();
          HelloBOMService service = cache.get(referenceConfig);
          SomeResponse response  = service.get(new SomeRequest());
          Thread.sleep(10);
      }
</code></pre></div>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">When the referenceConfig is first initialization successufully,<br>
the client will not  do any operations which affects performance.</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">a log of log message loged by dubbo as we call ReferenceCofnig.get() ,whiche affects the health of application.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" [DUBBO] There's no valid metadata config found, if you are using the simplified mode of registry url, please make sure you have a metadata address configured properly., dubbo version: 2.7.3, current host: 
 [DUBBO] There's no valid metadata config found, if you are using the simplified mode of registry url, please make sure you have a metadata address configured properly., dubbo version: 2.7.3, current host: "><pre class="notranslate"><code class="notranslate"> [DUBBO] There's no valid metadata config found, if you are using the simplified mode of registry url, please make sure you have a metadata address configured properly., dubbo version: 2.7.3, current host: 
 [DUBBO] There's no valid metadata config found, if you are using the simplified mode of registry url, please make sure you have a metadata address configured properly., dubbo version: 2.7.3, current host: 
</code></pre></div>