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

Fix panic in tailer when an ingester is removed from the ring while tailing #897

Merged
merged 1 commit into from
Aug 14, 2019

Conversation

pracucci
Copy link
Contributor

What this PR does / why we need it:

If an ingester is removed from the ring while tailing, tailDisconnectedIngesters() returns the tail clients map containing the removed ingester with nil value, causing a panic.

Which issue(s) this PR fixes:
Fixes #845

Checklist

  • Documentation added
  • Tests updated

Copy link
Member

@rfratto rfratto left a comment

Choose a reason for hiding this comment

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

This is great! I didn't realize there was an open bug for this, so I was just looking into this myself right as you published the PR haha.

pkg/querier/querier.go Show resolved Hide resolved
pkg/querier/querier.go Outdated Show resolved Hide resolved
@pracucci pracucci force-pushed the fix-tail-disconnected-ingesters branch from 70b419a to e89f9f1 Compare August 14, 2019 19:38
@pracucci
Copy link
Contributor Author

@rfratto May you re-review the PR, please? Comments should have been addressed 🙏

Copy link
Member

@rfratto rfratto left a comment

Choose a reason for hiding this comment

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

LGTM, thanks! I'll merge once the CI job stops flaking and passes.

@rfratto rfratto merged commit e5d6f3c into grafana:master Aug 14, 2019
@pracucci pracucci deleted the fix-tail-disconnected-ingesters branch August 16, 2019 06:50
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

Successfully merging this pull request may close these issues.

Panic in tailing code
2 participants