RoundRobinBalancingStrategy always starts from server 0
-------------------------------------------------------
Key: ISPN-9485
URL:
https://issues.jboss.org/browse/ISPN-9485
Project: Infinispan
Issue Type: Bug
Components: Hot Rod
Affects Versions: 9.4.0.CR1
Reporter: Dan Berindei
Assignee: Dan Berindei
Priority: Major
Fix For: 9.4.0.CR3
{{RoundRobinBalancingStrategy}} always starts from server 0, and resets back to 0 if a
server topology update has less servers. This means if N clients start and immediately add
a listener (e.g. for near cache), all N client listeners will be attached to the same
server.
We should pick a random server on every server topology update instead, so that near
cache listeners are attached to random servers.