You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicecomb.apache.org by GitBox <gi...@apache.org> on 2018/01/20 02:15:28 UTC

[GitHub] wujimin commented on a change in pull request #522: [SCB-266] Support generic rest

wujimin commented on a change in pull request #522: [SCB-266] Support generic rest
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/522#discussion_r162770215
 
 

 ##########
 File path: service-registry/src/main/java/org/apache/servicecomb/serviceregistry/consumer/MicroserviceVersions.java
 ##########
 @@ -118,7 +118,25 @@ public void pullInstances() {
     List<MicroserviceInstance> pulledInstances = microserviceInstances.getInstancesResponse().getInstances();
     String rev = microserviceInstances.getRevision();
 
-    setInstances(pulledInstances, rev);
+    safeSetInstances(pulledInstances, rev);
+  }
+
+  protected void safeSetInstances(List<MicroserviceInstance> pulledInstances, String rev) {
+    try {
+      setInstances(pulledInstances, rev);
 
 Review comment:
   like dynamic create class failed

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services