dubbo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] yinghuzhu commented on issue #61: 当 dubbo 服务进行分组时, 在服务列表界面点击会报错
Date Thu, 02 Aug 2018 12:10:44 GMT
yinghuzhu commented on issue #61: 当 dubbo 服务进行分组时, 在服务列表界面点击会报错
URL: https://github.com/apache/incubator-dubbo-ops/issues/61#issuecomment-409904601
 
 
   the root cause is that the "ServiceKey" is generated by group + "/"+interface+":"+version
 ; the source code located at: com/alibaba/dubbo/common/URL.java:1211 
   ```
   public String getServiceKey() {
           String inf = getServiceInterface();
           if (inf == null) return null;
           StringBuilder buf = new StringBuilder();
           String group = getParameter(Constants.GROUP_KEY);
           if (group != null && group.length() > 0) {
               buf.append(group).append("/");
           }
           buf.append(inf);
           String version = getParameter(Constants.VERSION_KEY);
           if (version != null && version.length() > 0) {
               buf.append(":").append(version);
           }
           return buf.toString();
       }
   ```
   So, I suggest:  "ServiceKey" = group + ":"+interface+":"+version
   
   any idea ?

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

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Mime
View raw message