Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

topology: replace token map with binary search #1350

Merged
merged 1 commit into from
Sep 22, 2019

Conversation

Zariel
Copy link
Contributor

@Zariel Zariel commented Sep 21, 2019

We are not going to have every token in a map, instead binary search to
find the closest host which owns the token. This remove the need to
first binary search the tokenRing to find an actual token to lookup in
the map.

Fix SimpleStrategy not placing replicas on unique hosts.

Dont return duplicate hosts from fallbacks from TokenAwarePolicy

go fmt ./...

updates #1349, #1316

We are not going to have every token in a map, instead binary search to
find the closest host which owns the token. This remove the need to
first binary search the tokenRing to find an actual token to lookup in
the map.

Fix SimpleStrategy not placing replicas on unique hosts.

Dont return duplicate hosts from fallbacks from TokenAwarePolicy

go fmt ./...
@Zariel Zariel merged commit 73f35ff into apache:master Sep 22, 2019
@Zariel Zariel deleted the improve-token-handling branch September 22, 2019 10:12
martin-sucha added a commit to kiwicom/gocql that referenced this pull request Feb 5, 2020
martin-sucha added a commit to kiwicom/gocql that referenced this pull request Feb 13, 2020
This reverts commit 73f35ff.

Conflicts:
	policies.go
	policies_test.go
	topology.go
martin-sucha added a commit to kiwicom/gocql that referenced this pull request Feb 14, 2020
martin-sucha added a commit to kiwicom/gocql that referenced this pull request Feb 14, 2020
martin-sucha added a commit to kiwicom/gocql that referenced this pull request Feb 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant