in src/main/java/org/apache/sling/discovery/oak/cluster/ClusterReader.java [135:143]
private boolean hasSeenLocalInstance(int clusterNodeId, String slingId,
String leaderElectionId) {
InstanceInfo instance = seenLocalInstances.get(clusterNodeId);
if (instance == null) {
return false;
}
return instance.getSlingId().equals(slingId) &&
instance.getLeaderElectionId().equals(leaderElectionId);
}