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

On interrupt do not attempt to apply blocks #1063

Merged
merged 1 commit into from
Dec 13, 2024
Merged

Conversation

heifner
Copy link
Member

@heifner heifner commented Dec 11, 2024

On shutdown the interrupt_trx_test.py sends a SIGTERM to all processes. The test timed out #1058 because the node was stuck trying to validate a block with an infinite transaction in it. The SIGTERM interrupted the block apply but there was a queued up process block which caused it to attempt the apply_block again. The fix for this is actually in #1064 which added a check_shutdown() to should_terminate(). With the check_shutdown() in should_terminate(), the node will check the app().is_quitting() before attempting to apply a block. This prevents it from attempting to apply a block that was interrupted via SIGTERM which sets the app().is_quitting() flag.

Also added to the test a verification that head is advancing before verifying that LIB is advancing as a clearer indication that LIB is advancing after recovering from the interrupted block.

Resolves #1058

…dvances and not just because of next block
@heifner heifner requested review from linh2931 and greg7mdp December 11, 2024 18:39
@heifner heifner added the OCI Work exclusive to OCI team label Dec 11, 2024
@ericpassmore
Copy link
Contributor

Note:start
category: System Stability
component: Internal
summary: On interrupt and shutdown do not attempt to apply blocks.
Note:end

@heifner heifner merged commit 4050251 into main Dec 13, 2024
36 checks passed
@heifner heifner deleted the GH-1058-interrupt-test branch December 13, 2024 14:54
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.

Test Failure: interrupt_trx_test (Timeout)
4 participants