grafana / loki

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

feat: flush not owned streams #13254

Closed vlad-diachenko closed 2 weeks ago

vlad-diachenko commented 2 weeks ago

What this PR does / why we need it: updated flush loop to check if the ingester lost ownership over the stream and flush that stream in this case.

Special notes for your reviewer: Stream ownership check was implemented in this PR and is hidden under the feature flag. So, until the feature is enabled, the flush loop must not be affected.

Checklist