Skip to content

Commit

Permalink
Fix for SequentialBalanceStrategy.
Browse files Browse the repository at this point in the history
  • Loading branch information
soklakov committed Nov 27, 2018
1 parent 6268b4b commit e0f4c5c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public ConnectionImpl pickConnection(InvocationHandler proxy, List<String> confi

Map<String, Long> blackList = ((LoadBalancedConnectionProxy) proxy).getGlobalBlacklist();

for (int attempts = 0; attempts < numRetries;) {
for (int attempts = 0; attempts < numRetries; attempts++) {
if (numHosts == 1) {
this.currentHostIndex = 0; // pathological case
} else if (this.currentHostIndex == -1) {
Expand Down

0 comments on commit e0f4c5c

Please sign in to comment.