Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

tsdb query fixes#6142

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
owen-d merged 3 commits intografana:mainfromsandeepsukhani:tsdb-query-fixes
May 12, 2022
Merged

Conversation

sandeepsukhani
Copy link
Contributor

What this PR does / why we need it:
Doing some minor fixes for the issues that I found on my local setup:

  1. Uploads manager was never queried when downloads manager was initialized in index shipper.
  2. Files created from nodes having- in their names were failing to be opened.
  3. __name__ matcher was not removed from queries passed to tsdb head.

@sandeepsukhanisandeepsukhani requested a review froma team as acode ownerMay 11, 2022 10:08
@grafanabot
Copy link
Contributor

./tools/diff_coverage.sh ../loki-main/test_results.txt test_results.txt ingester,distributor,querier,querier/queryrange,iter,storage,chunkenc,logql,loki

Change in test coverage per package. Green indicates 0 or positive change, red indicates that test coverage for a package fell.

+           ingester0%+        distributor0%+            querier0%+ querier/queryrange0%+               iter0%+            storage0%+           chunkenc0%-              logql-0.5%+               loki0%

Copy link
Member

@owen-dowen-d left a comment

Choose a reason for hiding this comment

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

LGTM!

func (s*indexShipper)ForEach(ctx context.Context,tableName,userIDstring,callbackfunc(index index.Index)error)error {
ifs.downloadsManager!=nil {
returns.downloadsManager.ForEach(ctx,tableName,userID,callback)
iferr:=s.downloadsManager.ForEach(ctx,tableName,userID,callback);err!=nil {
Copy link
Member

Choose a reason for hiding this comment

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

I thought this was by design: only using either the downloads mgr or the uploads mgr so we didn't query the same indices inR/W mode for the shipper.


xs:=strings.Split(trimmed,"-")
iflen(xs)!=2 {
iflen(xs)<2 {
Copy link
Member

Choose a reason for hiding this comment

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

Nice catch

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@owen-dowen-dowen-d approved these changes

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@sandeepsukhani@grafanabot@owen-d

[8]ページ先頭

©2009-2025 Movatter.jp