-
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: overload the PosixFileSystemAdaptor interface to generate real snapshot when follower installs snapshot #245
Closed
panlei-coder
wants to merge
21
commits into
OpenAtomFoundation:import-braft
from
panlei-coder:snapshot_before_reader
Closed
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
bc9356d
style: clear include headers
longfar-ncy e093290
feat: add WriteDoneClosure and Apply
longfar-ncy 7401b39
feat: generate binlog.proto in cmake
longfar-ncy 5d2528e
feat: add binlog write callback in storage
longfar-ncy 2dc674a
feat: finish on apply
longfar-ncy 8a5aadb
feat: 'hset' wrote by braft
longfar-ncy c205ce1
style
longfar-ncy ff0a38d
feat: cmd hdel write by binlog
longfar-ncy 478fe1f
fix: add depends of custom command
longfar-ncy 512e4f2
feat: add storage option is_use_raft
longfar-ncy 06a6ef7
fix: comment
longfar-ncy 629744c
fix: initialize member variable
longfar-ncy a5a5a9e
snapshot save & load
dingxiaoshuai123 ca88bb9
shell file
dingxiaoshuai123 e635f5e
fix: fix the checkpoint callback
panlei-coder e03e0ac
fix: resolve merge conflict
panlei-coder 0259291
feat: support generate snapshot before reader
panlei-coder 4cf2729
feat: overload the PosixFileSystemAdaptor interface to generate real …
panlei-coder 3298836
fix: snapshot data is directly filled in the snapshot path and the me…
panlei-coder fd7957a
fix: fix some comments
panlei-coder e4046e2
fix: delete some unnecessary annotation
panlei-coder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
killall -9 pikiwidb | ||
mkdir leader follower1 | ||
|
||
cd leader && ulimit -n 99999 && rm -fr * && ../bin/pikiwidb ../pikiwidb.conf --port 7777 & | ||
cd follower1 && ulimit -n 99999 && rm -fr * && ../bin/pikiwidb ../pikiwidb.conf --port 8888 & | ||
sleep 5 | ||
|
||
redis-cli -p 7777 raft.cluster init | ||
|
||
redis-benchmark -p 7777 -c 5 -n 10000 -r 10000 -d 1024 -t hset | ||
redis-cli -p 7777 raft.node DSS | ||
redis-benchmark -p 7777 -c 5 -n 10000 -r 10000 -d 1024 -t hset | ||
redis-cli -p 7777 raft.node DSS | ||
|
||
redis-cli -p 8888 raft.cluster join 127.0.0.1:7777 |
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
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
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
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
syntax = "proto3"; | ||
package pikiwidb; | ||
// option optimize_for = LITE_RUNTIME; | ||
|
||
enum OperateType { | ||
kNoOperate = 0; | ||
kPut = 1; | ||
kDelete = 2; | ||
} | ||
|
||
message BinlogEntry { | ||
uint32 cf_idx = 1; | ||
OperateType op_type = 2; | ||
bytes key = 3; | ||
optional bytes value = 4; | ||
} | ||
|
||
message Binlog { | ||
uint32 db_id = 1; | ||
uint32 slot_idx = 2; | ||
repeated BinlogEntry entries = 3; | ||
} |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这块这个 DSS 也可以改一下, 当时为了产生快照为了方便随便用了个缩写
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok