File tree Expand file tree Collapse file tree
sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/util Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -130,7 +130,8 @@ public static List<ClusterGroupEntity> wrapToClusterGroup(List<ClusterUniversalS
130130 if (mode == ClusterStateManager .CLUSTER_SERVER ) {
131131 String serverAddress = getIp (ip );
132132 int port = stateVO .getState ().getServer ().getPort ();
133- map .computeIfAbsent (serverAddress , v -> new ClusterGroupEntity ()
133+ String targetAddress = serverAddress + ":" + port ;
134+ map .computeIfAbsent (targetAddress , v -> new ClusterGroupEntity ()
134135 .setBelongToApp (true ).setMachineId (ip + '@' + stateVO .getCommandPort ())
135136 .setIp (ip ).setPort (port )
136137 );
@@ -145,8 +146,8 @@ public static List<ClusterGroupEntity> wrapToClusterGroup(List<ClusterUniversalS
145146 if (StringUtil .isBlank (targetServer ) || targetPort == null || targetPort <= 0 ) {
146147 continue ;
147148 }
148-
149- ClusterGroupEntity group = map .computeIfAbsent (targetServer ,
149+ String targetAddress = targetServer + ":" + targetPort ;
150+ ClusterGroupEntity group = map .computeIfAbsent (targetAddress ,
150151 v -> new ClusterGroupEntity ()
151152 .setBelongToApp (true ).setMachineId (targetServer )
152153 .setIp (targetServer ).setPort (targetPort )
You can’t perform that action at this time.
0 commit comments