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

Use separate channel to receive replication events #840

Open
drmingdrmer opened this issue May 15, 2023 · 1 comment
Open

Use separate channel to receive replication events #840

drmingdrmer opened this issue May 15, 2023 · 1 comment

Comments

@drmingdrmer
Copy link
Member

Currently, replication events, such as updating replication progress, are
transmitted via the notify channel. Since multiple leaders(with distinct votes)
share this channel on a single node, a new leader might receive a progress event
intended for a previous leader.

This issue is resolved by comparing the vote of the leader with the progress
event. If the event's vote differs from the current leader's vote, the event
is disregarded.

To simplify this process, a separate channel can be created for each leader, and
the channel can be abandoned when a leader steps down, such as when a higher
vote is observed. This approach eliminates the need for further vote
comparisons.

@github-actions
Copy link

👋 Thanks for opening this issue!

Get help or engage by:

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

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

No branches or pull requests

1 participant