-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Remove hardcoded labels in store shard matcher and inject unshardable label in query analyzer #5641
Conversation
Convert to draft to fix errors and warnings |
le
label in query analyzer.
le
label in query analyzer.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution. We should also add tests for this change.
@fpetkovski actually I didn't add the test because I see we already have one test case with thanos/pkg/querysharding/analyzer_test.go Lines 125 to 126 in 544d67a
|
@fpetkovski I fixed all the suggestions. Pls review.
We already have a Also, could you review #5653 too? |
Thanks, I can take a look at this tomorrow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I would just prefer to use locally scoped variables instead of declaring shardingLabels
with a broad scope.
@fpetkovski done converting to local variables |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this is nice work 👍
LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 🙌, one nit
Signed-off-by: haanhvu <haanh6594@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @haanhvu ❤️
Signed-off-by: Matej Gera <38492574+matej-g@users.noreply.github.com>
Signed-off-by: haanhvu haanh6594@gmail.com
fixes #5625
Changes
Remove hardcoded
__name__
label in store shard matcher to make it shardable. Inject unshardablele
label in query analyzer.Verification