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

4.x: Adjust BasicLoadBalancingPolicy#getReplicas #405

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

Bouncheck
Copy link
Collaborator

Unlike in 3.x this getReplicas is located in BasicLoadBalancingPolicy.
The keyspace and table information is passed through the Request argument, so there is no need to extend that part.
Those things aside, the behavior should be now in line with the description of #379 .

@Bouncheck Bouncheck self-assigned this Jan 10, 2025
@Bouncheck Bouncheck force-pushed the scylla-4.x-metadata-api branch from 98ebc5f to 6743ae4 Compare January 10, 2025 16:20
@Bouncheck Bouncheck changed the title 4.x: Adjust getReplicas call 4.x: Adjust BasicLoadBalancingPolicy#getReplicas Jan 10, 2025
@Bouncheck Bouncheck force-pushed the scylla-4.x-metadata-api branch 2 times, most recently from 5fc84f2 to 23a9d93 Compare January 13, 2025 11:57
Extends schema related classes with methods for querying scylla_keyspaces
in order to determine whether keyspace is tablets-enabled.

Adjusts schema queries tests and several other integration tests
that mock responses from system tables.

Adds `isUsingTablets()` and `setUsingTablets()` to KeyspaceMetadata.
@Bouncheck
Copy link
Collaborator Author

Rebased

@Bouncheck Bouncheck marked this pull request as ready for review January 13, 2025 13:12
@Bouncheck Bouncheck requested a review from dkropachev January 13, 2025 13:12
@Bouncheck Bouncheck force-pushed the scylla-4.x-metadata-api branch from 23a9d93 to 2048df7 Compare January 14, 2025 12:54
@Bouncheck Bouncheck force-pushed the scylla-4.x-metadata-api branch from 2048df7 to d19ef94 Compare January 14, 2025 13:07
Modifies the getReplicas method to do the tablet lookup if and only if the
keyspace metadata indicates that it's a tablets-based keyspace. Otherwise refer
to the token map.
Previous behavior was to try tablet map lookup first regardless of the
keyspace configuration.
@dkropachev dkropachev merged commit 492a4c9 into scylladb:scylla-4.x Jan 14, 2025
9 of 10 checks passed
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.

2 participants