I am trying out AWS keyspace service for cadence cassandra store. When trying to using the cadence-cassandra-tool for schema migration i see two issues
- Partitioner Issue:
Error: update the token ring due to error: Unsupported partitioner ‘com.amazonaws.cassandra.DefaultPartitioner’
- Consistency level:
Error: consistency level ANY is not supported for this operation. Supported consistency levels are: ONE, LOCAL_QUORUM, LOCAL_ONE
Steps to reproduce the behavior:
- docker run --rm -it ubercadence/server:0.11.0 bash
- export the following env variable for cadence-cassandra-tool:
- cadence-Cassandra-tool setup-schema -v 0.0
I could not find any pointers for Partitioner issue. AWS documents mentions that they support gocql but only basic example provided, which does not talk about setting the partitioner. Based on the research i have done, i think gcql will only accepts following https://github.com/gocql/gocql/blob/cd92c541a0b5013df76fd0f980d978b76839f9a9/token.go#L156
and not sure how that gets abstracted for AWS Keyspace.
For consistency level issue, AWS Keyspace does not support Any and only support ONE, LOCAL_QUORUM, LOCAL_ONE as show in the error. When i checked in cadence-cassandra-tool i see that defaultconsistency as ALL as seen here
Any help would be greatly appreciated.