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

query-frontend 0.17.1: runtime error: index out of range #3515

Closed
arvidsnet opened this issue Nov 30, 2020 · 3 comments
Closed

query-frontend 0.17.1: runtime error: index out of range #3515

arvidsnet opened this issue Nov 30, 2020 · 3 comments

Comments

@arvidsnet
Copy link

I faced runtime error: index out of range [7] with length 7 in query-frontend 0.17.1. There were huge amount of such errors (I suppose on each request), attached full log for one such error.
Unfortunately I do not know how to reproduce it, so far it happened only once.
query-frontend-0.17.1.err.log

@yeya24
Copy link
Contributor

yeya24 commented Nov 30, 2020

Hi, thanks for the report.
I can see this bug here https://github.com/thanos-io/thanos/blob/release-0.17/pkg/store/labelpb/label.go#L310. The Size() is used incorrectly. So this bug happens when the two labelsets we are comparing are exactly the same.

But I am not sure how to reproduce this from the query frontend because before sorting, we use a set to deduplicate series so I expect there is no duplicate labelset.

I will investigate more and check if I miss any corner case

@GiedriusS
Copy link
Member

@yeya24 this should be fixed with #3520, right?

@yeya24
Copy link
Contributor

yeya24 commented Dec 7, 2020

Yes, that's correct. I will close this one.

@yeya24 yeya24 closed this as completed Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants