-
Notifications
You must be signed in to change notification settings - Fork 584
[bugfix] fix avg_over_time & compare queries panic with max series #5016
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
base: main
Are you sure you want to change the base?
Conversation
@@ -58,7 +58,9 @@ func NewQueryRange(req *tempopb.QueryRangeRequest, maxSeriesLimit int) (Combiner | |||
if combiner.MaxSeriesReached() { | |||
// Truncating the final response because even if we bail as soon as len(resp.Series) >= maxSeries | |||
// it's possible that the last response pushed us over the max series limit. | |||
resp.Series = resp.Series[:maxSeries] | |||
if len(resp.Series) > maxSeries { |
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.
Does this also need to check && maxSeries > 0
to handle the case of unlimited? Not sure if there is a case where we could get combiner.MaxSeriesReached()
and maxSeries==0.
This PR has been automatically marked as stale because it has not had any activity in the past 60 days. |
What this PR does:
Which issue(s) this PR fixes:
Fixes #
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]