Skip to content
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

Programmable snapshots API #759

Merged
merged 55 commits into from
Mar 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
9e32a10
Added snapshot scheduling calls to schema
vladtr Jan 9, 2023
6da9928
Updates to snapshot scheduling api
vladtr Jan 11, 2023
7cb3a08
Updates to swagger spec
vladtr Jan 17, 2023
e54032a
Added snapshot status to get_snapshots_requests
vladtr Jan 25, 2023
e17e772
Updates to schema
vladtr Jan 30, 2023
d865960
Work in progress - requests scaffold, db
vladtr Feb 1, 2023
5ee9f0f
intermediate commit to sync changes
vladtr Feb 12, 2023
b1654c9
wip schedule/unschedule to update json db
vladtr Feb 13, 2023
5761439
Added ut to a snapshot scheduler
vladtr Feb 14, 2023
2aad1dc
Work in progress, moved things around
vladtr Feb 15, 2023
46502e5
Added execution handlers, several updates
vladtr Feb 16, 2023
8301c6b
Improved data structures
vladtr Feb 20, 2023
34612f2
Little refactoring
vladtr Feb 21, 2023
f1affa6
Hook snapshot generation to block_start
vladtr Feb 22, 2023
82ae039
Included light boost integration test
vladtr Feb 23, 2023
21630d3
Added second snapshot request to test
vladtr Feb 28, 2023
ca1a8d3
Merge branch 'main' into snapshot-api
vladtr Feb 28, 2023
2eae526
Updated yaml formatting
vladtr Feb 28, 2023
962f0a9
Addressing feedback comments 1/2
vladtr Mar 1, 2023
b14fc5a
Addressing feedback (2/2 minus refactoring)
vladtr Mar 2, 2023
cd0d56a
Make sure snapshot state preserved
vladtr Mar 2, 2023
5819266
Addressing feedback
vladtr Mar 2, 2023
9178e5e
Handle situation where mlock_spacing is not specified
vladtr Mar 2, 2023
407e0ba
Multiple fixes: pendings, tests, namings
vladtr Mar 3, 2023
4be2e1c
Removed debug message
vladtr Mar 3, 2023
c7a2f61
Made schedule_snapshot params optional
vladtr Mar 3, 2023
c4c448e
Merge branch 'main' into snapshot-api
vladtr Mar 5, 2023
d2aeeb7
Fixed pending snapshot test
vladtr Mar 6, 2023
d0a21f7
Added multinode py test, fixed bug in scheduler
vladtr Mar 7, 2023
7cf9589
Better handling of "now" snapshots
vladtr Mar 7, 2023
dc5c154
Updated snapshot_diff_test to use scheduler
vladtr Mar 7, 2023
2c5bb90
Cleanup requests with invalid start
vladtr Mar 7, 2023
dec7c11
Fixed whitespace plus additional test
vladtr Mar 7, 2023
041d897
Addressing feedback
vladtr Mar 9, 2023
24cd36d
Fix for the flakiness of snapshot test
vladtr Mar 13, 2023
df5ad0c
Merge branch 'main' into snapshot-api
vladtr Mar 13, 2023
ec624b5
Improved snapshot_diff test
vladtr Mar 14, 2023
b4b6778
Merge branch 'snapshot-api' of https://github.com/AntelopeIO/leap int…
vladtr Mar 14, 2023
dbf901a
Quit node gracefully on scheduler errors
vladtr Mar 14, 2023
c8487be
Renamed and cleaned up last test
vladtr Mar 14, 2023
dfc8d62
cleaned up listeners/handlers
vladtr Mar 14, 2023
dfe1c55
Addressing feedback
vladtr Mar 14, 2023
41601ac
make sure future scheduled snapshots treated correctly
vladtr Mar 15, 2023
3ec37d2
fixed ups
vladtr Mar 15, 2023
1041600
logic fix
vladtr Mar 15, 2023
d0d5d02
one more fix
vladtr Mar 15, 2023
b25ee3c
break after unschedule
vladtr Mar 15, 2023
696f30f
more selectability for invalid request
vladtr Mar 15, 2023
135a9ee
Merge branch 'main' into snapshot-api
vladtr Mar 15, 2023
b72027c
should allow loop to run from start to finish
vladtr Mar 15, 2023
152198f
Merge branch 'main' into snapshot-api
vladtr Mar 15, 2023
82093b0
Merge branch 'main' into snapshot-api
vladtr Mar 16, 2023
6e0672e
Addressing feedback
vladtr Mar 16, 2023
af808b7
feedback addressed
vladtr Mar 16, 2023
17c4ce3
feedback addressed
vladtr Mar 16, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions libraries/chain/include/eosio/chain/exceptions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,12 @@ namespace eosio { namespace chain {
3170011, "The signer returned no valid block signatures" )
FC_DECLARE_DERIVED_EXCEPTION( unsupported_multiple_block_signatures, producer_exception,
3170012, "The signer returned multiple signatures but that is not supported" )
FC_DECLARE_DERIVED_EXCEPTION( duplicate_snapshot_request, producer_exception,
3170013, "Snapshot has been already scheduled with specified parameters" )
FC_DECLARE_DERIVED_EXCEPTION( snapshot_request_not_found, producer_exception,
3170014, "Snapshot request not found" )
FC_DECLARE_DERIVED_EXCEPTION( invalid_snapshot_request, producer_exception,
3170015, "Invalid snapshot request" )

FC_DECLARE_DERIVED_EXCEPTION( reversible_blocks_exception, chain_exception,
3180000, "Reversible Blocks exception" )
Expand Down
Loading