heyile commented on a change in pull request #861: [SCB-612]delete useless 
MicroserviceMetaManager
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/861#discussion_r209418662
 
 

 ##########
 File path: 
core/src/main/java/org/apache/servicecomb/core/definition/loader/SchemaListenerManager.java
 ##########
 @@ -74,12 +71,22 @@ public void notifySchemaListener(List<SchemaMeta> 
schemaMetaList) {
   }
 
   public SchemaMeta ensureFindSchemaMeta(String microserviceName, String 
schemaId) {
-    MicroserviceMeta microserviceMeta = 
microserviceMetaManager.ensureFindValue(microserviceName);
+    if 
(!RegistryUtils.getMicroservice().getServiceName().equals(microserviceName)) {
+      LOGGER.error("miroserviceName : {} is different from the default 
microserviceName :{}",
+          microserviceName,
+          RegistryUtils.getMicroservice().getServiceName());
 
 Review comment:
   I just want to make a warning there, tell the programer that he may have the 
mistake with the parameter microserviceName,and you should not set the 
microserviceName any more. I do not want to stop the program, I'm afraid  that 
some other moduls or methods may invoke the method with the wrong 
microserviceName,so i just want to give a warnning  there, tell them the 
microserviceName is wrong and keep the program running as usual.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to