forked from apache/cassandra-gocql-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
policy: roundrobbin should try all up hosts (apache#1351)
Instead of keep a global position to iterate around a ring of hosts just shuffle all the hosts and return hosts which are up. Fix finding the correct token in the token ring for host selection. Simplify the tests so that they only test things they are inteded to test, let other tests verify that DCAwareRR works for example.
- Loading branch information
Showing
3 changed files
with
135 additions
and
268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.