scylladb / java-driver

ScyllaDB Java Driver for ScyllaDB and Apache Cassandra, based on the DataStax Java Driver
Apache License 2.0
63 stars 37 forks source link

3.x|4.x: LWT Statements routing decision is ignoring lb policy #371

Open dkropachev opened 18 hours ago

dkropachev commented 18 hours ago

Both 3.x and 4.x ignore LoadBalancingPolicy and return all the replicas in the same order they get it from vnodes or tablets for LWT statements and it seems wrong to me:

As result there is no way to make them target rack or dc, even more than that, when user feeds RackAwareRoundRobinPolicy to cluster config LWT queries are getting routed, unexpectedly, to all racks.