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

fix(swing-store): increase export timeout #8524

Closed
wants to merge 1 commit into from

Conversation

mhofman
Copy link
Member

@mhofman mhofman commented Nov 10, 2023

closes: #8523

Description

During swing-store export, open the DB with a larger timeout (default 5s), and make sure the DB is in WAL mode. #8522 changed the journaling during import to off which means a freshly imported DB cannot start a transaction. Furthermore starting a transaction (or switching the journal mode) requires temporarily acquiring some locks in the DB, which seems to conflict with the long transactions active during swingset execution, so increase the timeout during export to hopefully resolve the SQLITE_BUSY issues we've seen.

Security Considerations

None

Scaling Considerations

None

Documentation Considerations

None

Testing Considerations

Manually verified an export right after a state-sync import is possible again.

Will try syncing a node where the SQLITE_BUSY errors reproduced consistently before.

Upgrade Considerations

None

@mhofman mhofman requested review from warner and FUDCo November 10, 2023 15:42
@mhofman
Copy link
Member Author

mhofman commented Nov 10, 2023

Increasing export timeout doesn't fix.

@mhofman mhofman marked this pull request as draft November 10, 2023 16:06
@mhofman
Copy link
Member Author

mhofman commented Dec 6, 2023

Solved by #8619

@mhofman mhofman closed this Dec 6, 2023
@mhofman mhofman reopened this Dec 6, 2023
@mhofman mhofman closed this Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Creating state-sync snapshot can fail with SQLITE_BUSY
1 participant