Code Monkey home page Code Monkey logo

Comments (10)

krojew avatar krojew commented on July 16, 2024

Can you check with protocol v4?

from cdrs-tokio.

devrandom avatar devrandom commented on July 16, 2024

Do you mean downgrade to an old Cassandra? or is there a way to make it fall back to the older protocol?

from cdrs-tokio.

krojew avatar krojew commented on July 16, 2024

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

from cdrs-tokio.

devrandom avatar devrandom commented on July 16, 2024

It happens with V3, V4 and V5. Less often in the older protocol versions.

from cdrs-tokio.

devrandom avatar devrandom commented on July 16, 2024

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 async fn put if I push again and invalidate the line locator)

from cdrs-tokio.

devrandom avatar devrandom commented on July 16, 2024

The scylla driver gives me a more detailed error: Scylla(QueryError(DbError(WriteTimeout { consistency: Serial(LocalSerial), received: 1, required: 2, write_type: Cas }, "Operation timed out - received only 1 responses.")))'

So cdrs is probably getting confused by the write_type on this error.

Well, I'm confused by this error myself...

from cdrs-tokio.

krojew avatar krojew commented on July 16, 2024

If you're getting it on a two different drivers, it means a problem in your cluster.

from cdrs-tokio.

devrandom avatar devrandom commented on July 16, 2024

agreed. however, the cdrs driver does eat part of the error - would be good to fix.

from cdrs-tokio.

krojew avatar krojew commented on July 16, 2024

Sure, I'll take a look.

from cdrs-tokio.

krojew avatar krojew commented on July 16, 2024

This turns out to be a braking change and will be included in the next major version.

from cdrs-tokio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.