scylladb / python-driver

ScyllaDB Python Driver, originally DataStax Python Driver for Apache Cassandra
https://python-driver.docs.scylladb.com
Apache License 2.0
75 stars 42 forks source link

Update Metadata.get_replicas API #387

Open dkropachev opened 4 days ago

dkropachev commented 4 days ago

Metadata User-facing getReplicas API changes

If driver have user-facing API to get replica list we need to adapt it to tablets:

  1. To accomodate tablet requirements new optional parameter table should be added, alternatively another method could be implemented with additional table parameter.
  2. If target table is not tablet-based it should return old vnode-based result
  3. If target table is tablet-based it should return known tablet replicas for given token
  4. if there is no tablet record for given token, it should return empty list