[
https://issues.apache.org/jira/browse/RATIS-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17198663#comment-17198663
]
Rui Wang commented on RATIS-187:
--------------------------------
I have been thinking through this problem and the current challenge I can tell
is,
1) when taking a snapshot, how to hold a read lock to prevent future writes
while waiting for existing writes submitted before last append term-index
finish. It is because writes seem happen asynchronously.
2) The snapshot will be merging existing files and write them into snapshot
file. Recover from snapshot files means read content from the snapshot file and
recover to previous multiple files.
[~szetszwo] is my understanding correct? If so I will try to implement
something.
> Support snapshots in FileStoreStateMachine
> ------------------------------------------
>
> Key: RATIS-187
> URL: https://issues.apache.org/jira/browse/RATIS-187
> Project: Ratis
> Issue Type: New Feature
> Components: examples
> Reporter: Tsz-wo Sze
> Assignee: Rui Wang
> Priority: Major
>
> FileStoreStateMachine should implement takeSnapshot() defined in
> StateMachine. Also, it should initialize/reinitialize to the latest
> snapshot, if there is any.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)