-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Panic in tailing code #845
Comments
I was suspecting this might be happening due to server stopping before closing websockets, it seems it is not the case. If you see it again please let me know, will check it out. |
@cyriltovena An hypothesis is the Looking at the |
I doubt that would be the case, otherwise code at other places which also use ring for querying ingesters would also have panicked. Would still check for surety. |
@sandlis Can you elaborate on this, please? Do you mean it's not possible an ingester leave the ring? |
Ring would most likely just not return ingester which is leaving or left. |
Ok, that was my initial hypothesis. If so, then look at this
If an ingester which was previously in the ring (passed as Am I missing anything? |
This code only conn to disconnected ingesters. The second for loop removes those nil entries. |
The second for loop iterates over the output of |
Ohh, you are right. Sorry, was reading code on my phone so missed that bit. Will fix it. |
@sandlis I'm already working on a PR to fix it (while validating the idea with you). I will submit the PR in the next few hours 🙏 |
@pracucci Thank you so much for taking care of it! |
Stumble on this today
We should make sure this doesn't happen. Might be already fixed.
/cc @sandlis
The text was updated successfully, but these errors were encountered: