<ul dir="auto">
<li>[√] 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>[√] 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 and 2.7.6</li>
<li>Operating System version: windows 10</li>
<li>Java version: 1.8.0_151</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li><code class="notranslate">apollo.bootstrap.enabled=true</code> and make sure 'dubbo' is removed from <code class="notranslate">apollo.bootstrap.namespaces</code>  (I know dubbo has ability to load from Apollo's namespace 'dubbo' by default)</li>
<li>Define a bean <code class="notranslate">ConfigCenterConfig</code> (It will fail with 'No registry config found or it's not a valid config'). We ignore it now, so define a  <code class="notranslate">ConfigCenterBean</code> which is a real Spring style bean. And <code class="notranslate">configManager</code> in <code class="notranslate">DubboBootstrap</code> will find it.</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Configuration
public class DubboConfig {
  @Bean
  public ConfigCenterBean configCenter() {
    ConfigCenterBean configCenterBean = new ConfigCenterBean();
    configCenterBean.setAddress(&quot;apollo.yourcompany.com&quot;);
    configCenterBean.setProtocol(&quot;apollo&quot;);
    configCenterBean.setNamespace(&quot;dubbo&quot;);
//    configCenterBean.setIncludeSpringEnv(true);
    configCenterBean .setGroup(null); // I don't want appConfigContent(DubboBootstrap.java:821)
    return configCenterBean ;
  }
}"><pre class="notranslate"><code class="notranslate">@Configuration
public class DubboConfig {
  @Bean
  public ConfigCenterBean configCenter() {
    ConfigCenterBean configCenterBean = new ConfigCenterBean();
    configCenterBean.setAddress("apollo.yourcompany.com");
    configCenterBean.setProtocol("apollo");
    configCenterBean.setNamespace("dubbo");
//    configCenterBean.setIncludeSpringEnv(true);
    configCenterBean .setGroup(null); // I don't want appConfigContent(DubboBootstrap.java:821)
    return configCenterBean ;
  }
}
</code></pre></div>
<ol start="3" dir="auto">
<li>Start application</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">I don't think DubboBootstrap should load from ConfigCenter using Application name.<br>
<code class="notranslate">appConfigContent = dynamicConfiguration.getProperties ... </code> should not be executed.</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">The <code class="notranslate">DubboBootstrap</code> just force to load from ConfigCenter, it doesn't allow property set by<br>
configCenterConfig, even <code class="notranslate">dubbo.application.name</code> is set in Apollo's dubbo namespace.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="String appGroup = getApplication().getName();"><pre class="notranslate"><code class="notranslate">String appGroup = getApplication().getName();
</code></pre></div>
<p dir="auto">What actually happens?</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<p dir="auto"><em>Realtime-Compute-Server is spring.application.name</em></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WARN 17952 --- [           main] c.c.f.a.i.RemoteConfigRepository         : Load config failed, will retry in 1 SECONDS. appId: realtime-compute, cluster: default, namespaces: Realtime-Compute-Server.properties"><pre class="notranslate"><code class="notranslate">WARN 17952 --- [           main] c.c.f.a.i.RemoteConfigRepository         : Load config failed, will retry in 1 SECONDS. appId: realtime-compute, cluster: default, namespaces: Realtime-Compute-Server.properties
</code></pre></div>
<p dir="auto">soon later:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.lang.UnsupportedOperationException: No support
	at org.apache.dubbo.common.config.configcenter.DynamicConfiguration.publishConfig(DynamicConfiguration.java:155)
	at org.apache.dubbo.common.config.configcenter.wrapper.CompositeDynamicConfiguration.publishConfig(CompositeDynamicConfiguration.java:72)
	at org.apache.dubbo.metadata.DynamicConfigurationServiceNameMapping.lambda$map$0(DynamicConfigurationServiceNameMapping.java:59)
	at org.apache.dubbo.metadata.DynamicConfigurationServiceNameMapping.execute(DynamicConfigurationServiceNameMapping.java:92)
	at org.apache.dubbo.metadata.DynamicConfigurationServiceNameMapping.map(DynamicConfigurationServiceNameMapping.java:58)"><pre class="notranslate"><code class="notranslate">java.lang.UnsupportedOperationException: No support
	at org.apache.dubbo.common.config.configcenter.DynamicConfiguration.publishConfig(DynamicConfiguration.java:155)
	at org.apache.dubbo.common.config.configcenter.wrapper.CompositeDynamicConfiguration.publishConfig(CompositeDynamicConfiguration.java:72)
	at org.apache.dubbo.metadata.DynamicConfigurationServiceNameMapping.lambda$map$0(DynamicConfigurationServiceNameMapping.java:59)
	at org.apache.dubbo.metadata.DynamicConfigurationServiceNameMapping.execute(DynamicConfigurationServiceNameMapping.java:92)
	at org.apache.dubbo.metadata.DynamicConfigurationServiceNameMapping.map(DynamicConfigurationServiceNameMapping.java:58)
</code></pre></div>
<hr>
<p dir="auto">SPLIT LINE</p>
<hr>
<p dir="auto">Here is my thought:</p>
<ol dir="auto">
<li>DubboBootstrap should using group defined in ConfigCenterBean or <code class="notranslate">configContent</code> from configFile to load some app individual config.</li>
<li>If my first way of using configCenter config is correct, why UnsupportedOperationException is thrown.</li>
<li>If some of maintainers approve my idea, I'm pleased to submit a PR.</li>
</ol>
<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>Operating System version: win7</li>
<li>Java version: jdk1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>执行status -l  命令</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">之前的版本是可以取到threadpool的信息</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<p dir="auto">现在缺少了threadpool的信息</p>