Code Monkey home page Code Monkey logo

Comments (7)

krojew avatar krojew commented on July 16, 2024

Can you check the logs if the statement is being re-prepared and what the result is?

from cdrs-tokio.

rukai avatar rukai commented on July 16, 2024

cdrs_log.txt
From the logs it seems like cdrs considers the connection dead after the first failure so it never retries.
I'm guessing at this line

if let Ok(new) = prepare_result {
it silently ignores a failure returned by send_envelopes (probably that it considers the connection dead)

from cdrs-tokio.

krojew avatar krojew commented on July 16, 2024

Well, it's complicated. It's partly a bug, partly a feature. This kind of error should not result in closing the connection, which is what happened here. But, if all connections to a node were closed, for any reason, it should be marked as down and the reconnection policy should kick in. This is what happened here. With the new reconnection system, some errors should be handled more gracefully.

from cdrs-tokio.

krojew avatar krojew commented on July 16, 2024

Can you verify branch https://github.com/krojew/cdrs-tokio/tree/bug-162 solves the problem?

from cdrs-tokio.

rukai avatar rukai commented on July 16, 2024

Yep, that branch fixes the issue, thanks for your help

from cdrs-tokio.

krojew avatar krojew commented on July 16, 2024

Released 8.1.1.

from cdrs-tokio.

rukai avatar rukai commented on July 16, 2024

Thanks!

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.