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

Creating tables and indexes in autocommit mode #3631

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

lonvia
Copy link
Member

@lonvia lonvia commented Jan 9, 2025

The CI tests are repeatedly running into issues where a deadlock kills the import during the stage where tables and indexes are created. From the Postgresql logs it looks like the deadlock is against the autovacuum process. According to the documentation this shouldn't be happening unless we have a forced transaction-id-wraparound vacuum. That seems rather unlikely after having only imported a small Liechtenstein extract.

Currently the create commands all run in a single connection. It might be that multiple sequential creates create a situation where autovacuum can't cancel itself anymore. At least that is the assumption in this PR. Hard to test. Lets see if the CI failures stop.

Might avoid some deadlock situations with autovacuum.
@lonvia lonvia merged commit 4523b9a into osm-search:master Jan 10, 2025
8 checks passed
@lonvia lonvia deleted the avoid-transactions branch January 10, 2025 15:44
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.

1 participant