Skip to content

Commit

Permalink
OF-2806: Fix entry display for Routing Servers cache warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Fishbowler authored and guusdk committed Feb 22, 2024
1 parent 5d62ef9 commit 2221aa5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public static Multimap<String, String> generateReportForRoutingTableServerRoutes
if (nonCachedRemoteServerRouteAddressing.isEmpty()) {
result.put("pass", String.format("All elements in s2sDomainPairsByClusterNode exist in %s.", serversCache.getName()));
} else {
result.put("fail", String.format("Not all route owners in s2sDomainPairsByClusterNode exist in %s. These %d entries do not: %s", serversCache.getName(), nonCachedRemoteServerRouteAddressing.size(), nonCachedLocalServerRouteAddressing.stream().map(DomainPair::toString).collect(Collectors.joining(", "))));
result.put("fail", String.format("Not all route owners in s2sDomainPairsByClusterNode exist in %s. These %d entries do not: %s", serversCache.getName(), nonCachedRemoteServerRouteAddressing.size(), nonCachedRemoteServerRouteAddressing.stream().map(DomainPair::toString).collect(Collectors.joining(", "))));
}

final Set<DomainPair> nonLocallyStoredCachedServerRouteAddressing = cache.keySet().stream().filter(v -> !localServerRoutesAddressing.contains(v)).filter(v -> !remoteServerRoutesAddressing.contains(v)).collect(Collectors.toSet());
Expand Down

0 comments on commit 2221aa5

Please sign in to comment.