Skip to content

Commit

Permalink
add alias of default executor thread pool, add schema compatibility w…
Browse files Browse the repository at this point in the history
…arning log
  • Loading branch information
yhs0092 committed Jun 21, 2018
1 parent c2cf178 commit 1975396
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 5 additions & 3 deletions core/src/main/resources/META-INF/spring/cse.bean.xml
Expand Up @@ -29,12 +29,14 @@
<property name="configId" value="config"/>
</bean>

<bean class="org.apache.servicecomb.core.CseContext" factory-method="getInstance"></bean>
<bean class="org.apache.servicecomb.core.CseContext" factory-method="getInstance"/>

<bean class="org.apache.servicecomb.core.CseApplicationListener">
</bean>

<bean id="cse.executor.groupThreadPool" class="org.apache.servicecomb.core.executor.FixedThreadExecutor"></bean>
<bean id="cse.executor.groupThreadPool" class="org.apache.servicecomb.core.executor.FixedThreadExecutor"/>
<alias name="cse.executor.groupThreadPool" alias="cse.executor.default"/>
<bean id="cse.executor.reactive" class="org.apache.servicecomb.core.executor.ReactiveExecutor"></bean>
<alias name="cse.executor.groupThreadPool" alias="servicecomb.executor.groupThreadPool"/>
<bean id="cse.executor.reactive" class="org.apache.servicecomb.core.executor.ReactiveExecutor"/>
<alias name="cse.executor.reactive" alias="servicecomb.executor.reactive"/>
</beans>
Expand Up @@ -307,7 +307,10 @@ private void checkRemainingSchema(Map<String, GetSchemaResponse> scSchemaMap) {

// Currently nothing to do but print a warning
LOGGER.warn("There are schemas only existing in service center: {}, which means there are interfaces changed. "
+ "It's recommended to increment microservice version before deploying.", scSchemaMap.keySet());
+ "It's recommended to increment microservice version before deploying.",
scSchemaMap.keySet());
LOGGER.warn("ATTENTION: The schemas in new version are less than the old version, "
+ "which may cause compatibility problems.");
}
}

Expand Down

0 comments on commit 1975396

Please sign in to comment.