Comments (6)
👋 Thanks for opening this issue!
Get help or engage by:
/help
: to print help messages./assignme
: to assign this issue to you.
from openraft.
Thank you for reporting this issue in detail and proposing a fix.
What's the version of openraft were you using? I'll check if the issue has been resolved in the main branch.
With the latest main branch, if there is a pending action, drain_events
will return immediately:
openraft/openraft/src/replication/mod.rs
Lines 508 to 518 in 5da9594
And RaftCore
will periodically send an heartbeat event to ReplicationCore
to wake up it thus self.rx_repl.recv()
should not block for ever.
from openraft.
I was unable to reproduce the issue with a test case. Could you assist me in confirming that the steps in this test align with the steps in your situation:
And with export RUST_LOG=debug
, the testing script will output debug level logs, which may help on tracing this issue.
from openraft.
I was on a previous version of main. I'll try again with this updated code and see if this resolves it. My version definitely doesn't have that if statement.
from openraft.
The updated main branch resolves this issue.
from openraft.
I was on a previous version of main. I'll try again with this updated code and see if this resolves it. My version definitely doesn't have that if statement.
Right. I found this bug and fixed it after pushing the backoff
to github. :(
from openraft.
Related Issues (20)
- semi-async `RaftLogReader::try_get_log_entries` HOT 3
- Non-blocking `RaftStateMachine::apply()` HOT 5
- `AsyncRuntime::unbounded_mpsc` HOT 2
- `AsyncRuntime::watch` HOT 3
- Update quickstart to include Responder for RaftTypeConfig HOT 2
- Mention `server_metrics()` and `data_metrics()` in `FAQ How to get notified when the server state changes` HOT 1
- Metrics: add last acked heartbeat timestamp for each follower/learner HOT 2
- Timekeeping in standard units HOT 3
- Generalize `AnyError` HOT 1
- Direction towards allocation-free operations HOT 22
- Change a voter to learner should not affect existing learners. HOT 1
- Uniform `AsyncRuntime` channel interfaces HOT 2
- Add test suite to ensure the correctness of `AsyncRuntime` implementation. HOT 6
- Migrate Rust toolchain action from `actions-rs/toolchain` to an action that is still maintained HOT 1
- New release to remove version pin of proc-macro2 HOT 3
- Logs spam from `openraft::engine::handler::vote_handler` HOT 3
- Improper use of `Raft::metrics()` can block the RaftCore async task and underlying OS thread HOT 1
- panic in `src/membership/membership.rs:309:51` HOT 5
- Missing log replay on single-node restart (bug?) HOT 4
- Add an API that blocks until logs replay is done if `save_committed()` is implemented HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openraft.