If the client is configured with isReadOnlyForRedisClusterReplicas == true, calls to reset() within JedisClusterInfoCache will clear out the slots and slotNodes, but will not wipe out replicaSlots. This means that any calls to assignSlotsToReplicaNode, will cause the lists to grow indefinitely.
This can cause a memory leak when a node experiences a failure due to repeated calls to refresh the slots.
If the client is configured with isReadOnlyForRedisClusterReplicas == true, calls to reset() within JedisClusterInfoCache will clear out the slots and slotNodes, but will not wipe out replicaSlots. This means that any calls to assignSlotsToReplicaNode, will cause the lists to grow indefinitely.
This can cause a memory leak when a node experiences a failure due to repeated calls to refresh the slots.