hraft-dispatcher
hraft-dispatcher copied to clipboard
Use bbolt as snapshot store
This PR is based on #7. Try to implement bbolt snapshot instead of file snapshot.
@tangyang9464 @closetool @sagilio please review
Updated the changes. Please take a look
Currently, we are using the file snapshot store, if we switch the bbolt as snapshot store, maybe this breaks user data, do you have idea to improve this?
Currently, we are using the file snapshot store, if we switch the bbolt as snapshot store, maybe this breaks user data, do you have idea to improve this?
I'm not sure whether we can simply migrate file snapshots to bbolt, that is to read file snapshots and put key-value pairs into bbolt.
This is a good idea, I think we can add a flag here, default to file snapshot, if the user switches the bbolt snapshot, we need to check whether the file snapshot exists, if true, we need to migrate the file snapshot to bbolt snapshot.
This is a good idea, I think we can add a flag here, default to file snapshot, if the user switches the bbolt snapshot, we need to check whether the file snapshot exists, if true, we need to migrate the file snapshot to bbolt snapshot.
I just added relevant code.