Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sdk/java: increase index to core url monotically
The client keeps a list of core URLs which it uses to load balance requests to the server. An index is kept corresponding to a position in this list. When an error occurs the index is increased. Previously, it was possible for separate requests to read the same index and increase it separately. We have updated the logic to mitigate this by finding the position in the list (performing the modulo operation) just before a request is made. Closes #727
- Loading branch information