-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error UnexpectedWriteType("CAS")) with multiple tokio tasks #112
Comments
Can you check with protocol v4? |
Do you mean downgrade to an old Cassandra? or is there a way to make it fall back to the older protocol? |
You can specify the protocol version when building connection configuration: https://docs.rs/cdrs-tokio/7.0.0/cdrs_tokio/cluster/struct.NodeTcpConfigBuilder.html#method.with_version |
It happens with V3, V4 and V5. Less often in the older protocol versions. |
Also, wanted to mention that this is an LWT batch. The code in question is here: https://gitlab.com/lightning-signer/validating-lightning-signer/-/merge_requests/312/diffs#144ee5d06667bb53830287a66cd0bda0b514e40c_0_319 (look for |
The scylla driver gives me a more detailed error: So cdrs is probably getting confused by the Well, I'm confused by this error myself... |
If you're getting it on a two different drivers, it means a problem in your cluster. |
agreed. however, the cdrs driver does eat part of the error - would be good to fix. |
Sure, I'll take a look. |
This turns out to be a braking change and will be included in the next major version.
|
I am getting error
UnexpectedWriteType("CAS"))
when doing batch inserts from multiple tasks in the sameSession
object.It fails intermittently on a three node cluster with Cassandra version
[cqlsh 6.0.0 | Cassandra 4.0.5 | CQL spec 3.4.5 | Native protocol v5]
. It works consistently with a single task.On a local Cassandra instance in docker, it work consistently with multiple tasks - version 4.0.6.
The text was updated successfully, but these errors were encountered: