mapbox / mapbox/tippecanoe

-journal file is not getting deleted when tippecanoe is running for a long time

Open
#933 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
3.1k
Forks
430
PR merge metrics
No merged PRs in 30d

Description

Hi

We have used tippecanoe to convert geojson to mbtiles. In few cases, where tippecanoe will run for more than 8 hours. During those scneario, the "-journal" file is not getting deleted and so, the mbtiles becomes corrupt.

So, I ran the sqlite3 mbtilesfile vacuum manually. It fixes the mbtiles corrupt issue and -journal file issue. But when I checked the tilejson data, I see lot of members are missing in metadata.

Can anyone assist on this? Why -journal file is not getting deleted when tippecanoe is running for a long time and why metadata is not getting updated, like format, vector_layers etc are missing.

Please assist.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing a tippecanoe conversion that runs for more than eight hours, then inspect the SQLite -journal file and resulting MBTiles metadata. Compare the metadata before and after manually running sqlite3 vacuum; done means the journal is handled correctly and fields such as format and vector_layers are preserved.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, sqlite
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.