drolbr / Overpass-API

A database engine to query the OpenStreetMap data.
http://overpass-api.de
GNU Affero General Public License v3.0
690 stars 90 forks source link

Improve resilience on power outages #730

Open drolbr opened 1 month ago

drolbr commented 1 month ago

See this thread on community.openstreetmap.org .

There are apparently some scenarios where an Overpass database is rendered unusable when a power outage stopped the disks. Improve resilience with regard to proper atomics and more checks on recovery startups to make Overpass more resilient.

drolbr commented 1 month ago

The update mechanism has skipped one diff. This must not happen under no circumstances.

Also, there are zeros in the idx files where none should be. Check on startup for suspicious file content and use alternative files where available.