Skip to content
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

Make Raft.LeaderCh() return a new channel for each invocation #427

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Jille
Copy link
Contributor

@Jille Jille commented Sep 8, 2020

.. and immediately send the current leadership state over the channel.

This way it can be used by multiple pieces of code with disrupting another.

Sending the value immediately avoids strange race conditions when RaftState gets updated at a slightly different moment.

fixes #426

.. and immediately send the current leadership state over the channel.

This way it can be used by multiple pieces of code with disrupting another.

Sending the value immediately avoids strange race conditions when RaftState gets updated at a slightly different moment.

fixes hashicorp#426
@hashicorp-cla
Copy link

hashicorp-cla commented Sep 8, 2020

CLA assistant check
All committers have signed the CLA.

I forgot to update r.leaderChLastMessage
Jille added a commit to Jille/raft-grpc-leader-rpc that referenced this pull request Sep 9, 2020
This is available since hashicorp/raft#427 but the code is backwards compatible and detects whether your version of Raft includes it.
Jille added a commit to Jille/raft-grpc-leader-rpc that referenced this pull request Sep 9, 2020
This is available since hashicorp/raft#427 but the code is backwards compatible and detects whether your version of Raft includes it.
Jille added a commit to Jille/raft-grpc-leader-rpc that referenced this pull request Sep 9, 2020
This is available since hashicorp/raft#427 but the code is backwards compatible and detects whether your version of Raft includes it.
@stale
Copy link

stale bot commented Nov 7, 2020

Hey there,
We wanted to check in on this request since it has been inactive for at least 90 days.
Have you reviewed the latest godocs?
If you think this is still an important issue in the latest version of the Raft library or
its documentation please feel let us know and we'll keep it open for investigation.
If there is still no activity on this request in 30 days, we will go ahead and close it.
Thank you!

@stale stale bot added the waiting-reply label Nov 7, 2020
@Jille
Copy link
Contributor Author

Jille commented Nov 7, 2020

still relevant

@stale stale bot removed the waiting-reply label Nov 7, 2020
@stale
Copy link

stale bot commented Jan 10, 2021

Hey there,
We wanted to check in on this request since it has been inactive for at least 90 days.
Have you reviewed the latest godocs?
If you think this is still an important issue in the latest version of the Raft library or
its documentation please feel let us know and we'll keep it open for investigation.
If there is still no activity on this request in 30 days, we will go ahead and close it.
Thank you!

@stale stale bot added the waiting-reply label Jan 10, 2021
@Jille
Copy link
Contributor Author

Jille commented Jan 10, 2021

still relevant, discussion in #426 got some traction the other day actually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No good way to watch leadership
3 participants