diff --git a/src/main/java/io/lettuce/core/cluster/models/partitions/Partitions.java b/src/main/java/io/lettuce/core/cluster/models/partitions/Partitions.java index 2d63562a81..df2e3fc876 100644 --- a/src/main/java/io/lettuce/core/cluster/models/partitions/Partitions.java +++ b/src/main/java/io/lettuce/core/cluster/models/partitions/Partitions.java @@ -164,9 +164,8 @@ public void updateCache() { synchronized (partitions) { - invalidateCache(); - if (partitions.isEmpty()) { + invalidateCache(); return; }