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

[5.0] Test: Check for unlinkable blocks while syncing #2008

Merged
merged 2 commits into from
Dec 20, 2023

Conversation

heifner
Copy link
Member

@heifner heifner commented Dec 20, 2023

Update nodeos_startup_catchup.py test to sync with --block-log-retain-blocks=0 and verify no unlinkable blocks.
Test fails before #2007 fix.

Resolves #2006

@heifner heifner added the OCI Work exclusive to OCI team label Dec 20, 2023
@heifner heifner added this to the Leap v5.0.0 milestone Dec 20, 2023
@heifner heifner marked this pull request as ready for review December 20, 2023 15:31
logFile = Utils.getNodeDataDir(catchupNodeNum) + "/stderr.txt"
f = open(logFile)
contents = f.read()
if contents.count("unlinkable_block_exception") > 3: # a few are fine
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you can even make it to 10 to prevent test flakeness.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets see how it goes. If we see flakiness then we can adjust up.

@arhag arhag removed this from the Leap v5.0.0 milestone Dec 20, 2023
@heifner heifner merged commit 4becdd5 into release/5.0 Dec 20, 2023
29 checks passed
@heifner heifner deleted the GH-2006-test-no-block-log-sync branch December 20, 2023 23:07
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.

When setting block-log-retain-blocks = 0 get lots of unlinkable blocks errors
4 participants