jgroups-raft icon indicating copy to clipboard operation
jgroups-raft copied to clipboard

Store the internal state in the snapshot.

Open jabolina opened this issue 3 years ago • 0 comments

  • Created a class to hold the node's internal state and serialize. Right now, it has only the members of the protocol.

  • Store the internal state in the snapshot.


A step towards solving #189.

This is just a first (simpler) approach, storing the information at the beginning of the snapshot. It has the problem that can not parse snapshots of previous versions.

Another approach I can see is, to avoid that problem, we can create a separate structure working the same way as the snapshot right now, but only to the node's state.

Another thing, after we decide above, I want to add a byte to introduce a parser version to the snapshot to make it easier to handle future changes.

jabolina avatar Dec 06 '22 00:12 jabolina