-
Notifications
You must be signed in to change notification settings - Fork 211
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
Join from an existing snapshot #1532
Merged
Merged
Changes from all commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
7d8a619
Champ correct size
6dd9e0b
Snapshot from raft
2b283c2
Generate snapshots and store to disk
a3705e2
Snapshot protocol WIP
af0a2e2
Merge remote-tracking branch 'upstream/master' into generate_snapshot
0b020c9
ledger max chunk -> ledger min chunk
2158750
Snapshots are written to disk
12e0158
Snapshotter returns snapshot version to Raft
09428ee
Fix unit tests
0b965de
Merge remote-tracking branch 'upstream/master' into generate_snapshot
bcc8b31
Format
9a8aa43
black
f4683e0
SnaPshotter
432675c
Unsigned idx
e2d519c
Merge branch 'master' into generate_snapshot
jumaffre 33b4cb1
snapshot_min_tx -> snapshot_max_tx
40d0712
Merge branch 'generate_snapshot' of github.com:jumaffre/CCF into gene…
8920fe2
Remove type of Tmsg when adding task
07e3b76
And the other half...
a6acae5
Merge branch 'generate_snapshot' into async_snapshot_generation
7e24cc2
Snapshot generation is async
143f3a8
Commit snapshot evidence
ec87487
Merge remote-tracking branch 'upstream/master' into async_snapshot_ge…
a07e6b0
Add snapshot idx to evidence table
e33694c
Split snapshot generation and serialisation
426b580
Format
e83b546
Merge branch 'master' into async_snapshot_generation
jumaffre e2332e3
Actually remove last_snapshot_idx from Raft
ea7dcef
snapsot evidence singular
bc9b328
Merge branch 'async_snapshot_generation' of github.com:jumaffre/CCF i…
b6ab777
Merge branch 'master' into async_snapshot_generation
jumaffre 21908b2
Format
8d743a1
Merge branch 'async_snapshot_generation' of github.com:jumaffre/CCF i…
0ddfdfc
WIP
f731498
Support for local hooks from snapshot
b0bb32f
Add unit test for deletion
ff8666a
Merge remote-tracking branch 'upstream/master' into snapshot_hooks
b7175e1
Global hooks too
271a679
Merge branch 'master' into snapshot_hooks
jumaffre 2a5b51c
Merge branch 'master' into snapshot_hooks
jumaffre 7407333
Merge branch 'master' into snapshot_hooks
jumaffre e13693c
Merge branch 'master' into snapshot_hooks
jumaffre e12e5d4
WIP python infra
e4e9c3d
Merge remote-tracking branch 'upstream/master' into join_from_snapshot
43c60c8
e2e infra works
ef23253
Works with hack around term history
4d5a84c
Fix to have same ledgers on all nodes
ecaf307
Fix term history bug
d436dc6
WIP
e8da9d8
Set the commit idx when restoring snapshot
b0fba41
Cleanup snapshot application on join
a36c144
Add test suite for snapshots
359f418
Cleanup before PR
c8df8f3
Format
56ce322
Merge branch 'master' into join_from_snapshot
jumaffre 5905657
VERBOSE LOGGING (to revert)
a9a2eeb
Merge branch 'join_from_snapshot' of github.com:jumaffre/CCF into joi…
87594cc
Fix dangling reference issue
0d55f1e
Fix raft unit test (view)
9e53fce
Merge branch 'master' into join_from_snapshot
jumaffre 100e21b
Quiet
b709168
Merge branch 'join_from_snapshot' of github.com:jumaffre/CCF into joi…
4be1eed
Merge branch 'master' into join_from_snapshot
jumaffre 7a528e4
Update src/host/main.cpp
jumaffre a723675
Update src/host/snapshot.h
jumaffre fc7690e
Merge remote-tracking branch 'upstream/master' into join_from_snapshot
7296be7
Oops
28ec74f
Format
4a6aabe
Fixup
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
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 |
---|---|---|
|
@@ -19,12 +19,4 @@ namespace ccf | |
tls::Pem network_enc_pubk; | ||
}; | ||
}; | ||
|
||
struct Join | ||
{ | ||
struct In | ||
{ | ||
CCFConfig config; | ||
}; | ||
}; | ||
} |
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.
Lowering the raft election timeout here (default is 100s) as the reconfiguration test now also waits for a new election to complete.