m13922236379 commented on code in PR #2810:
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/2810#discussion_r861434652


##########
governance/src/main/java/org/apache/servicecomb/router/distribute/AbstractRouterDistributor.java:
##########
@@ -146,7 +150,7 @@ public void initLatestVersion(String serviceName, List<T> 
list) {
     String latestVersion = null;
     for (T server : list) {
       E ms = getIns.apply(server);
-      if (getServerName.apply(ms).equals(serviceName)) {
+      if (getServerName.apply(ms).equals(serviceName) || 
getAlias.apply(ms).equals(serviceName)) {
         if (latestVersion == null || VersionCompareUtil

Review Comment:
   同理,那getServerName应该也不能为null吧。



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