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

Change: move external command trigger to dedicated Trigger struct #888

Merged
merged 2 commits into from
Jul 1, 2023

Conversation

drmingdrmer
Copy link
Member

@drmingdrmer drmingdrmer commented Jul 1, 2023

Changelog

Change: move external command trigger to dedicated Trigger struct

Moved trigger election, heartbeat, snapshot and purge log from Raft
to a new Trigger struct, to separate externally trigger actions from
the main Raft API.


Marked the old trigger methods in Raft as deprecated, and recommended
using the new Trigger struct instead.

The main motivation of these changes is to organize the Raft API in a
more structured way, by extracting trigger actions into a dedicated
struct, instead of mixing them together in the Raft API.

Refactor: move RaftTypeConfig to separate file

This change is Reviewable

Moved trigger election, heartbeat, snapshot and purge log from `Raft`
to a new `Trigger` struct, to separate externally trigger actions from
the main Raft API.

---

Marked the old trigger methods in `Raft` as deprecated, and recommended
using the new `Trigger` struct instead.

The main motivation of these changes is to organize the Raft API in a
more structured way, by extracting trigger actions into a dedicated
struct, instead of mixing them together in the `Raft` API.
@drmingdrmer drmingdrmer merged commit 4c488a6 into databendlabs:main Jul 1, 2023
22 checks passed
@drmingdrmer drmingdrmer deleted the 44-raft-ctl branch July 1, 2023 15:50
@drmingdrmer drmingdrmer mentioned this pull request Mar 9, 2024
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

Successfully merging this pull request may close these issues.

1 participant