Skip to content

Guarantee Atomicity in Ratis InstallSnapshot RPC#7131

Merged
JackieTien97 merged 2 commits intoapache:masterfrom
SzyWilliam:install_snapshot_grpc
Aug 30, 2022
Merged

Guarantee Atomicity in Ratis InstallSnapshot RPC#7131
JackieTien97 merged 2 commits intoapache:masterfrom
SzyWilliam:install_snapshot_grpc

Conversation

@SzyWilliam
Copy link
Member

Currently RatisConsensus uses a metafile to control snapshot atomicity. That is, a metafile is added to snapshot directory last, and we judge a snapshot directory's completeness by the existence of this metafile.
Therefore, we have to guarantee this order when sending snapshot directory via network. That is, the metafile must be transmitted last.

@JackieTien97 JackieTien97 merged commit bc1a59e into apache:master Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants