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

Do not interrupt apply_block during replay #1134

Merged
merged 1 commit into from
Jan 29, 2025
Merged

Conversation

heifner
Copy link
Member

@heifner heifner commented Jan 28, 2025

During replay, under default conditions, no chainbase db sessions are active; therefore, do not allow interrupt of apply block. Also there is no use-case for interrupting an individual block during replay. With this PR, ctrl-c will interrupt replay between block applies.

There is no use case for interrupting an individual apply from the block log. Any "infinite" or invalid block in the block log needs to be pruned manually since there would be no way to append on to the blocklog to bypass a block. Also we do not want to auto-truncate the blocklog when ctrl-c interrupts replay. Instead the expected use-case is to continue replay on restart.

Issue introduced by: #993

Resolves #1125

@heifner heifner changed the title GH-1125 Do not interrupt apply_block during replay Do not interrupt apply_block during replay Jan 28, 2025
@heifner heifner added the OCI Work exclusive to OCI team label Jan 28, 2025
@ericpassmore
Copy link
Contributor

Note:start
category: Other
component: Internal
summary: Improve interrupt, and do not apply interrupt apply_block during replay.
Note:end

@heifner heifner merged commit 52c236a into main Jan 29, 2025
36 checks passed
@heifner heifner deleted the GH-1125-replay-interrupt branch January 29, 2025 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chain_head+chainbase mixup when stopping & restarting a replay on 1.1dev
4 participants