Lemon-Liming opened a new issue, #3775:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3775

   文档中描述servicecomb.references.version-rule default值为latest:
   
https://servicecomb.apache.org/references/java-chassis/en_US/build-consumer/common-configuration/
   
   经过实际测试,default值并不是latest,当有不同版本微服务实例时,默认情况每次请求依然会采用轮训的方式访问不同的微服务实例。
   
   
查阅了org.apache.servicecomb.core.definition.MicroserviceConfig.java代码,发现代码中设置的默认值确实不是latest,而是0.0.0.0+:
   
https://github.com/apache/servicecomb-java-chassis/blob/master/core/src/main/java/org/apache/servicecomb/core/definition/MicroserviceConfig.java
   
   @InjectProperties(prefix = "servicecomb")
   public class MicroserviceConfig {
     @InjectProperty(keys = {
         "references.version-rule.${service}",
         "references.${service}.version-rule", // Deprecated
         "references.version-rule"
     }, defaultValue = **"0.0.0.0+"**)
   ...
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to