Skip to content

Commit

Permalink
Adding warning logging when more than one evcacheClient is detected i…
Browse files Browse the repository at this point in the history
…n addOrSet method
  • Loading branch information
Sumanth Pasupuleti [email protected] authored and sumanth-pasupuleti committed Oct 16, 2021
1 parent d834747 commit 4dff5a1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ private EVCacheLatch addOrSet(boolean replaceItem, String key, CachedData value,
).collect(Collectors.toList());
}

if (evCacheClients.size() > 1) {
log.warn("Ended up with more than one evCacheClients: {}, key: {}, serverGroups: {}, destinationIps: {}", evCacheClients, key, serverGroups, destinationIps);
}

EVCacheClient[] evCacheClientsArray = new EVCacheClient[evCacheClients.size()];
evCacheClients.toArray(evCacheClientsArray);

Expand Down

0 comments on commit 4dff5a1

Please sign in to comment.