Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

New tiles not created when replag high

Aperta
#123 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
cpp
Ambito
backend

Direzione di ricerca

Inizia con openstreetmap-tiles-update-expire e i percorsi /status e /dirty descritti nel report, quindi traccia come vengono gestiti replag, i timestamp dei metatile e le informazioni sulla scadenza del browser. Riproduci lo scenario con replag elevato e determina il comportamento previsto per i timestamp e il nuovo rendering prima di definire una modifica e i relativi test.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Currently, I've imported a data extract into a rendering database, and am updating it using openstreetmap-tiles-update-expire, doing an hour's worth every 10 minutes so as not to overload the server. Currently, the state of that according to the relevant log is:

[2016-01-25 12:17:01] 26404 start import from seq-nr 1761684, replag is 21 hour(s)

Using a slippy map if I browse to a previously unrendered area I see as expected

DEBUG: START TILE ajt 15 16080-16087 10696-10703, new metatile

and a metatile is created. If I do a "/status" call on the new data on the map I see:

Tile is clean. Last rendered at Mon Jan 25 12:19:05 2016. Last accessed at Mon Jan 25 12:19:05 2016. Stored in file:///var/lib/mod_tile/ajt/15/0/50/233/220/8.meta

The timestamp on the created metatile file is:

-rw-r--r-- 1 user user 292203 Jan 25 12:19 /var/lib/mod_tile/ajt/15/0/50/233/220/8.meta

I suspect that there's a problem in that that's "now" rather than "21 hours ago" (the age of the data according to replag). If there was a change to that data 6 hours ago, and I browse to that area on the map again, I'm not seeing tiles being re-rendered until an explicit /dirty call on the tile, even in a different browser. I see the effect fairly regularly because I call openstreetmap-tiles-update-expire between certain hours of the day only (for reasons we don't need to go into).

Would it be feasible to set the metatile timestamp to match the replag (and presumably the tile expiry information sent back to the browser too) , or have I got hold of completely the wrong end of the stick here?

EDIT: amended title to try not to be misleading.

Lingua principale
C++
Stelle
318
Fork
200
Merge medio
2g 15h
PR unite (30g)
19

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di openstreetmap/mod_tile

Tutte le issue di openstreetmap/mod_tile

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.