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

feat: Ignore empty streams in distributor if all entries fail validation #13674

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

benclive
Copy link
Contributor

What this PR does / why we need it:
This PR removes streams from a Push if the Distributor finds that all the entries within it are invalid.
We were previously continuing to send these empty streams to the ingesters (and others via the Tee, where we spotted it) despite the call not having any entries to process.

Special notes for your reviewer:
I'm not sure if this behaviour is desired for any reason on the ingester side - maybe limits tracking or stats calculations?

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Documentation added
  • Tests updated
  • Title matches the required conventional commits format, see here
    • Note that Promtail is considered to be feature complete, and future development for logs collection will be in Grafana Alloy. As such, feat PRs are unlikely to be accepted unless a case can be made for the feature actually being a bug fix to existing behavior.

@benclive benclive requested a review from a team as a code owner July 26, 2024 09:54
Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cyriltovena cyriltovena merged commit 6c4b062 into main Jul 26, 2024
62 checks passed
@cyriltovena cyriltovena deleted the benclive/remove-empty-streams-after-validation branch July 26, 2024 13:21
benclive added a commit to cyriltovena/loki that referenced this pull request Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants