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

Rewrite the fsm component of raft #176

Open
sjcsjc123 opened this issue Jul 9, 2023 · 2 comments
Open

Rewrite the fsm component of raft #176

sjcsjc123 opened this issue Jul 9, 2023 · 2 comments
Labels
difficult:⭐⭐⭐⭐⭐ Up to five stars enhancement New feature or request

Comments

@sjcsjc123
Copy link
Member

sjcsjc123 commented Jul 9, 2023

  • Apply: Implementing log submission operations for raft clusters
  • Snapshot: Implementing snapshot operations for raft clusters
  • Restore: Implementing storage operations for raft clusters
// fsm implements raft.FSM interface
type fsm struct {
	//implement me
}

func newFSM() raft.FSM {
	return &fsm{}
}

func (f fsm) Apply(log *raft.Log) interface{} {
	//TODO implement me
	panic("implement me")
}

func (f fsm) Snapshot() (raft.FSMSnapshot, error) {
	//TODO implement me
	panic("implement me")
}

func (f fsm) Restore(snapshot io.ReadCloser) error {
	//TODO implement me
	panic("implement me")
}
@sjcsjc123 sjcsjc123 added enhancement New feature or request difficult:⭐⭐⭐⭐⭐ Up to five stars labels Jul 9, 2023
@saeid-a
Copy link
Contributor

saeid-a commented Jul 20, 2023

Do we have the structure of the log.Data?

@sjcsjc123
Copy link
Member Author

The initial consideration is to record the information of meta components and corresponding operations. Do you have any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficult:⭐⭐⭐⭐⭐ Up to five stars enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants