Feat/raft transport comp (#180)
I have completed the initial implementation of the raft transport. Can you review it and let me know if there are any issues or if it looks good? Thank you.
Can you directly submit the code to the branch of the main project ByteStorage/FlyDB in the later stage, so that we can switch branches for viewing, which will be more convenient!
If all the components of the raft are implemented, we can test whether they can be used normally in this way:
-
Start three store nodes through
grpcand create one new raft node each -
Obtain the number of peers in the store cluster and the leader of cluster, observing if they can be successfully obtained
-
Close one of the store nodes
-
Observe again whether the number of peers in the store cluster and the leader of cluster can be successfully obtained
-
Restart the recently closed store node
-
Observe whether the number of peers in the store cluster has returned to normal
Can you share your opinion?