token-aware policy doesn't work for token range queries (at least in the
Java driver 3.x).  You need to force the driver to do the reading using a
specific token as a routing key.  Here is Java implementation of the token
range scanning algorithm that Spark uses:
https://github.com/alexott/cassandra-dse-playground/blob/master/driver-1.x/src/main/java/com/datastax/alexott/demos/TokenRangesScan.java

I'm not aware if Python driver is able to set routing key explicitly, but
whitelist policy should help



On Wed, Nov 11, 2020 at 7:03 AM Erick Ramirez <erick.rami...@datastax.com>
wrote:

> Yes, use a token-aware policy so the driver will pick a coordinator where
> the token (partition) exists. Cheers!
>


-- 
With best wishes,                    Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)

Reply via email to