java-driver icon indicating copy to clipboard operation
java-driver copied to clipboard

Shard awarness does not work with batch statements

Open gleb-cloudius opened this issue 5 years ago • 3 comments

In case of token awareness the driver uses first statement in a batch do decide. Shard awareness should do the same.

gleb-cloudius avatar Feb 06 '20 10:02 gleb-cloudius

It may be lwt related. To reproduce run upstream cassandra-stress with our driver like that:

cassandra-stress user profile=cqlstress-lwt-example.yaml n=10000000 ops'(insert=1)' cl=QUORUM -mode native cql3 protocolVersion=3 -rate threads=200

cqlstress-lwt-example.yaml is in Cassandra sources

gleb-cloudius avatar Feb 06 '20 11:02 gleb-cloudius

Looks like protocolVersion=3 was the problem. Without it shard awarness works for batches as well. Is this expected?

gleb-cloudius avatar Feb 12 '20 11:02 gleb-cloudius

I think we use v4 today, so is this still an issue?

mykaul avatar Jun 24 '24 13:06 mykaul