RoundRobinMasterSlaveLoadBalanceAlgorithm throw an ArrayIndexOutOfBoundsException #1265
Closed
Description
For English only, other languages we will close it directly.
Please answer these questions before submitting your issue. Thanks!
Before submit a new issue, please check existed issue first, to make sure your issue is not a duplicated one.
Which version of Sharding-Sphere do you using?
3.0.0.M3
Which project do you using? Sharding-JDBC or Sharding-Proxy?
Sharding-JDBC
Expected behavior
RoundRobinMasterSlaveLoadBalance always be OK
Actual behavior
after roundrobin Integer.MAX_VALUE times, will throw an ArrayIndexOutOfBoundsException.
Reason analyze
the AtomicInteger's getAndIncrement() may produce an negative numbers.