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

Ensure ImportThread is always terminated. #650

Merged
merged 1 commit into from
Mar 1, 2022

Conversation

codepainters
Copy link
Contributor

This pull request solves the problem I observe with v0.3.5: if -nominatim-import is executed when the database is not reachable, the process never ever exits. This is due to ImportThead.finish() never being called, and thus ImportThread never terminating.

Note: this issue is no longer observable with latest code. After 45b3ec7 commit NominatimConstructor reaches to the database (and fails) before ImportThread is created, effectively masking the problem.

However it can still fail, should any of the queries in readEntireDatabase() raise any exception.

@lonvia lonvia merged commit ab9f7ed into komoot:master Mar 1, 2022
@lonvia
Copy link
Collaborator

lonvia commented Mar 1, 2022

Makes perfect sense. Thank you!

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.

2 participants