-
Notifications
You must be signed in to change notification settings - Fork 248
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
commit_ret_elem
leak when client timeout
#295
Comments
Yes, it seems requests timed out due to slow NuRaft, but even though the server couldn't commit logs in time, it didn't lose the leadership and eventually succeeded in committing them. To me, option 1 is the right solution, as
By the way, just curious, what is your heartbeat interval, election timer lower/upper bound, and client timeout limit? |
Thanks. I will try to fix the issue today. I noticed the case when I researched the previous issue #293 . I reduced the timeout and interval value to reproduce it.
|
@greensky00 May I ask when you are available for NuRaft in a day? |
I'm working on this repo on-demand basis when I have extra time. There is no fixed time slot. |
Thanks |
Descripe the issue
NuRaft commit 0073f55 commited at 2021.11.19
When node become follower it will clear
commit_ret_elem
. Below log shows there 28 elements but there were only 15 clients responses. Why ?Analysis
When commit log leader will add unfound entry to
commit_ret_elems
in case of commit faster. But what if NuRaft is slow and client timeout first, NuRaft will add anymore which may leadcommit_ret_elem
leak.Part of my log lost, so the analysis is more about guess.
How to fix
If the guess is right, maybe 2 resolution
commit_ret_elem
may resove the issue.The text was updated successfully, but these errors were encountered: