forked from apache/cassandra-java-driver
-
Notifications
You must be signed in to change notification settings - Fork 38
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
3.x: Update Metadata.getReplicas API #380
Comments
Bouncheck
added a commit
to Bouncheck/java-driver
that referenced
this issue
Jan 7, 2025
Adds the field to `KeyspaceMetadata` that informs if the keyspace has tablets enabled. It is initialized with value `false` and updated to `true` only if the keyspace is discovered in `system_schema.scylla_keyspaces` and its entry has non-null value in `initial_tablets` column. The update happens on schema refresh. Updates `Metadata#getReplicas` to use this keyspace metadata information to decide whether to look for replicas in the token map or tablet map. Fixes scylladb#380.
Bouncheck
added a commit
to Bouncheck/java-driver
that referenced
this issue
Jan 7, 2025
Adds the field to `KeyspaceMetadata` that informs if the keyspace has tablets enabled. It is initialized with value `false` and updated to `true` only if the keyspace is discovered in `system_schema.scylla_keyspaces` and its entry has non-null value in `initial_tablets` column. The update happens on schema refresh. Updates `Metadata#getReplicas` to use this keyspace metadata information to decide whether to look for replicas in the token map or tablet map. Fixes scylladb#380.
Bouncheck
added a commit
to Bouncheck/java-driver
that referenced
this issue
Jan 7, 2025
Adds the field to `KeyspaceMetadata` that informs if the keyspace has tablets enabled. It is initialized with value `false` and updated to `true` only if the keyspace is discovered in `system_schema.scylla_keyspaces` and its entry has non-null value in `initial_tablets` column. The update happens on schema refresh. Updates `Metadata#getReplicas` to use this keyspace metadata information to decide whether to look for replicas in the token map or tablet map. Fixes scylladb#380.
dkropachev
pushed a commit
that referenced
this issue
Jan 7, 2025
Adds the field to `KeyspaceMetadata` that informs if the keyspace has tablets enabled. It is initialized with value `false` and updated to `true` only if the keyspace is discovered in `system_schema.scylla_keyspaces` and its entry has non-null value in `initial_tablets` column. The update happens on schema refresh. Updates `Metadata#getReplicas` to use this keyspace metadata information to decide whether to look for replicas in the token map or tablet map. Fixes #380.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Metadata User-facing
getReplicas
API changesIf driver have user-facing API to get replica list we need to adapt it to tablets:
table
should be added, alternatively another method could be implemented with additionaltable
parameter.table
is nottablet-based
it should returnold
vnode-based resulttable
istablet-based
it should return known tablet replicas for given tokenThe text was updated successfully, but these errors were encountered: