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

Corrupt meta tiles not refreshed #203

Open
woodpeck opened this issue May 28, 2020 · 2 comments
Open

Corrupt meta tiles not refreshed #203

woodpeck opened this issue May 28, 2020 · 2 comments

Comments

@woodpeck
Copy link
Contributor

If for any reason a meta tile on disk is broken, mod_tile will return a 404 error to the client and not attempt to re-render the broken tile (unless/until it is considered "old"). It might make sense to change that, and instead attempt a re-render if encountering a broken meta tile.

@stephankn
Copy link
Contributor

Sounds like a good idea.

I assume we have no idea on how meta tiles got corrupted in the beginning. Is there a way to scan the tile store for broken tiles?

@woodpeck
Copy link
Contributor Author

The place where such a call should be made is probably

ap_log_rerror(APLOG_MARK, APLOG_WARNING, 0, r, "Failed to read tile from disk: %s", err_msg);

Most broken tiles I have witnessed were the result of a disk full condition. In 95% of cases they would be 0-byte files which can easily be cleaned up with a "find" operation, but at least for the tirex backend it is possible that a truncated meta tile gets created (openstreetmap/tirex#51). It is possible that the problem does not exist for renderd at all but still people could copy meta tiles from one box to the other or find other means to create broken meta tiles.

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

No branches or pull requests

2 participants