-
Notifications
You must be signed in to change notification settings - Fork 808
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
add context cancellation checks on GetSeries #5827
add context cancellation checks on GetSeries #5827
Conversation
d36daa5
to
5218578
Compare
5218578
to
f8d0d61
Compare
c4e20c6
to
9bd12de
Compare
pkg/querier/querier.go
Outdated
if ctx.Err() != nil { | ||
return storage.ErrSeriesSet(ctx.Err()) | ||
} |
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.
I think we did something similar and thanos and the perf was ok, right @yeya24 ?
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.
We have something like this when expanding postings. No obvious impact.
pkg/querier/querier.go
Outdated
if ctx.Err() != nil { | ||
return storage.ErrSeriesSet(ctx.Err()) | ||
} |
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.
We have something like this when expanding postings. No obvious impact.
78a8848
to
8328536
Compare
Signed-off-by: Erlan Zholdubai uulu <erlanz@amazon.com>
8328536
to
74d2af2
Compare
Signed-off-by: Erlan Zholdubai uulu <erlanz@amazon.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.
Thanks!
@erlan-z Can you update changelog please? |
Signed-off-by: Erlan Zholdubai uulu <erlanz@amazon.com>
b730522
to
bf18092
Compare
I feel we might also miss some context check at |
What this PR does:
Add some context cancellation checks on GetSeries
Which issue(s) this PR fixes:
Fixes #
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]