-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Snapshot save & load #238
Merged
dingxiaoshuai123
merged 10 commits into
OpenAtomFoundation:import-braft
from
dingxiaoshuai123:snapshot
Apr 22, 2024
Merged
feat: Snapshot save & load #238
dingxiaoshuai123
merged 10 commits into
OpenAtomFoundation:import-braft
from
dingxiaoshuai123:snapshot
Apr 22, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df254d7
to
ca88bb9
Compare
AlexStocks
reviewed
Mar 26, 2024
82ac958
to
9853209
Compare
9853209
to
851d5b6
Compare
Closed
KKorpse
reviewed
Apr 16, 2024
5622aa9
to
0104b46
Compare
Mixficsol
approved these changes
Apr 16, 2024
be46b00
to
2e8d4d6
Compare
longfar-ncy
reviewed
Apr 19, 2024
longfar-ncy
reviewed
Apr 19, 2024
afe4aae
to
330760f
Compare
1e8c46d
to
a3e347a
Compare
a3e347a
to
3e53764
Compare
longfar-ncy
reviewed
Apr 22, 2024
longfar-ncy
approved these changes
Apr 22, 2024
a20b71c
to
ffb767e
Compare
ffb767e
to
6bf07a0
Compare
AlexStocks
reviewed
Apr 22, 2024
AlexStocks
reviewed
Apr 22, 2024
AlexStocks
reviewed
Apr 22, 2024
AlexStocks
reviewed
Apr 22, 2024
3e8c7c0
to
524991f
Compare
524991f
to
7fd94d7
Compare
AlexStocks
approved these changes
Apr 22, 2024
3411495
into
OpenAtomFoundation:import-braft
5 checks passed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1 、增加了 snapshot save 和 snapshot load 。
1)在 save_snapshot 中, 持有 Storage 读锁的情况下, 创建 chenckpoint 并保存在 braft 指定的 snaoshot 目录下.
2)snapshot_load 中, 持有 Storage 写锁的情况下, 将 checkpoint 中的数据拷贝一份到 DB 目录中, 并重新打开 DB. (对于 sst 文件,创建 hard link ,其他文件,copy).
3)、实验: 提拱了 save_load.sh 运行之后检查 leader 和 follower 文件的数据是否符合预期。
2、提供了 DOSNAPSHOT 命令, 手动触发 barft 创建快照.