grafana / loki

Like Prometheus, but for logs.
https://grafana.com/loki
GNU Affero General Public License v3.0
23.39k stars 3.39k forks source link

fix(blooms): Delete outdated metas during planning #13363

Closed salvacorts closed 2 months ago

salvacorts commented 2 months ago

What this PR does / why we need it: If a planner crashes before receiving all tasks for a given tenant-table combination, it will not delete the outdated metas and blocks. This PR fixes this by also deleting outdated metas during the planning phase. Thereafter, gaps will be computed only with the metas that are up to date.

Checklist