-
Notifications
You must be signed in to change notification settings - Fork 143
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
Learners do not appear in Membership.all_nodes #608
Comments
👋 Thanks for opening this issue! Get help or engage by:
|
0.7.3 does not implement persistent learner storage in If you need this feature, use the |
Thanks for your response. I switched to the master branch, and I can confirm it works there! I did want to ask about some possibly unrelated behavior: on the 0.7.x branch I saw
Is that normal? It seems like heartbeats in the raft log would cause quite a bit of write amplification. |
Follow up confirmation, this filter used to work for heartbeats:
|
Yes, the heartbeat message is changed: In This simplifies the logic when granting a candidate's vote request. But it introduces unnecessary IO(to flush blank log to disk). See: |
Thanks for the clarification! |
Describe the bug
This may be my own misunderstanding, but I assumed (and infer from the docs in main) that Membership.all_nodes should include
learner
s:However, when I add a learner in my test, I see that it is receiving messages (added to the "volitile state" LeaderState.nodes ), but is not present in the leader's Membership state, and no EntryPayload::Membership is ever sent to the group.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The learner is shown in
all_nodes
.Actual behavior
snip:
(the ID of the learner is
5
during this test)Env (please complete the following information):
Additional files:
Additional context
N/A
The text was updated successfully, but these errors were encountered: