You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2019/07/31 07:18:56 UTC

[GitHub] [servicecomb-java-chassis] wujimin commented on a change in pull request #1283: [SCB-1407] Add new field when print provideCache log

wujimin commented on a change in pull request #1283: [SCB-1407] Add new field when print provideCache log
URL: https://github.com/apache/servicecomb-java-chassis/pull/1283#discussion_r309070365
 
 

 ##########
 File path: service-registry/src/main/java/org/apache/servicecomb/serviceregistry/task/MicroserviceInstanceRegisterTask.java
 ##########
 @@ -68,6 +68,10 @@ protected boolean doRegister() {
     microserviceInstance.getHealthCheck().setTimes(serviceRegistryConfig.getResendHeartBeatTimes());
 
     String instanceId = srClient.registerMicroserviceInstance(microserviceInstance);
+    MicroserviceInstance temIns = srClient.findServiceInstance(microserviceInstance.getServiceId(),instanceId);
+    if(temIns!=null){
+      microserviceInstance.setTimestamp(temIns.getTimestamp());
 
 Review comment:
   i remember SC provide this property in very very very old version
   but better to confirm that.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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