Closed
Description
In highly loaded systems, an ever incrementing member variable current
in the class RoundRobinHostHandler
would numerically overflow within a quite realistic time horizon (months). It would cause the index
variable to become negative resulting in an IndexOutOfBoundsException
to be thrown.
final int index = (current++) % size;
Host host = hosts.getHostsList().get(index);
Changing the current
variable type to long
would practically solve the issue.
Metadata
Metadata
Assignees
Labels
No labels