Skip to content

Conversation

@Bouncheck
Copy link

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
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