Giter Club home page Giter Club logo

Comments (4)

drmingdrmer avatar drmingdrmer commented on June 19, 2024 1

I can not download the log file you attached, which gave me a 404 error. :(

But I guess what happened with your application is this problem:
https://docs.rs/openraft/0.9.1/openraft/docs/faq/index.html#how-to-minimize-error-logging-when-a-follower-is-offline

How to minimize error logging when a follower is offline?

Excessive error logging, like ERROR openraft::replication: 248: RPCError err=NetworkError: ..., occurs when a follower node becomes unresponsive. To alleviate this, implement a mechanism within RaftNetwork that returns a Unreachable error instead of a NetworkError when immediate replication retries to the affected node are not advised.

from openraft.

github-actions avatar github-actions commented on June 19, 2024

👋 Thanks for opening this issue!

Get help or engage by:

  • /help : to print help messages.
  • /assignme : to assign this issue to you.

from openraft.

undecidedapollo avatar undecidedapollo commented on June 19, 2024

Hey @drmingdrmer, thanks for looking into this and sending over that link. That is what seems to be happening. After updating the raft_network_impl.rs file to check if it was a connection related error and return Unreachable instead it behaves as expected.

        let resp = client
            .post(url)
            .json(&req)
            .send()
            .await
            .map_err(|e| {
                if e.is_connect() {
                    return openraft::error::RPCError::Unreachable(Unreachable::new(&e));
                }
                openraft::error::RPCError::Network(NetworkError::new(&e))
            })?;

Any concerns if I add this change to the example in the repo along w/ a comment on why? I feel it may add benefit to others if they encounter the same issue.

from openraft.

drmingdrmer avatar drmingdrmer commented on June 19, 2024

Any concerns if I add this change to the example in the repo along w/ a comment on why? I feel it may add benefit to others if they encounter the same issue.

Absolutely, let's polish it up!

It gonna be an excellent job sharpening the example to fit perfectly into this case!

from openraft.

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.