You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
private Instance locateInstance(List<Instance> instances, Instance instance) {
int target = 0;
while (target >= 0) {
target = instances.indexOf(instance);
if (target >= 0) {
Instance result = instances.get(target);
if (result.getClusterName().equals(instance.getClusterName())) {
return result;
}
instances.remove(target);
}
}
return null;
}
The first param instances get from raftStore, the instance's equals method be override, it judge (ip + port + ephemeral), when instance equals return true, then judge clusterName is equals.
In the code, if instance equals, but cluster name not equlas, the instance will be remove.
The text was updated successfully, but these errors were encountered:
Describe the bug
The code as follow:
The first param
instances
get from raftStore, the instance's equals method be override, it judge (ip + port + ephemeral), when instance equals return true, then judge clusterName is equals.In the code, if instance equals, but cluster name not equlas, the instance will be remove.
The text was updated successfully, but these errors were encountered: