liubao68 commented on a change in pull request #625: [SCB-444]try to optimize autoDiscovery function URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/625#discussion_r178416880
########## File path: service-registry/src/main/java/org/apache/servicecomb/serviceregistry/client/http/ServiceRegistryClientImpl.java ########## @@ -85,7 +85,7 @@ public void init() { private void retry(RequestContext requestContext, Handler<RestResponse> responseHandler) { LOGGER.warn("invoke service [{}] failed, retry.", requestContext.getUri()); requestContext.setIpPort(ipPortManager.getNextAvailableAddress(requestContext.getIpPort())); - requestContext.setRetry(true); + requestContext.incrementRetryTimes(requestContext.getRetryTimes()); Review comment: See comments above, this code is quite bad, difficult to understand ---------------------------------------------------------------- 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