-
Notifications
You must be signed in to change notification settings - Fork 738
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
Use atomic operations in database to harden against failures #692
Comments
Candidates for using atomic operations: lighthouse/beacon_node/store/src/state_batch.rs Lines 39 to 46 in cd0b86f
lighthouse/beacon_node/beacon_chain/src/beacon_chain.rs Lines 1475 to 1476 in cd0b86f
lighthouse/beacon_node/beacon_chain/src/beacon_chain.rs Lines 1823 to 1826 in cd0b86f
|
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
At present, each insert into the store is its own operation, but we often rely on invariants to be maintained between objects inserted at different times (e.g. if we have a block, we expect to have its state too). Through the use of transactions/atomics at the level of the KV store, we should be able to better maintain these invariants under adverse conditions (the process getting SIGKILLed, power outage, etc).
The text was updated successfully, but these errors were encountered: