-
Notifications
You must be signed in to change notification settings - Fork 532
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
Reset frameBytesLeft when cutting a frame in streamChunkedReadResponses #4423
Conversation
Signed-off-by: Justin Lei <justin.lei@grafana.com>
0915c96
to
9a854b5
Compare
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.
Good fix! Logically this makes sense, just some style comments.
CHANGELOG.md
Outdated
@@ -4,6 +4,7 @@ | |||
|
|||
### Grafana Mimir | |||
|
|||
* [BUGFIX] Querier: Streaming remote read was returning 1 chunk per frame after the first frame of a series. #4423 |
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.
This should be sorted with the other [BUGFIX]
tags at the bottom of the changelog file. Can you clarify the comment a bit, something like "Streaming read will return multiple chunks per frame after the first frame."?
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.
Oop, didn't notice they were sorted--fixed!
Signed-off-by: Justin Lei <justin.lei@grafana.com>
Co-authored-by: Tyler Reid <tyler.reid@grafana.com>
Co-authored-by: Tyler Reid <tyler.reid@grafana.com>
347e10d
to
a1247a8
Compare
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.
LGTM
…es (#4423) * Reset frameBytesLeft when cutting a frame in streamChunkedReadResponses * Update CHANGELOG.md * Rename frameBytesLeft -> frameBytesRemaining * Update pkg/querier/remote_read_test.go Signed-off-by: Justin Lei <justin.lei@grafana.com> Co-authored-by: Tyler Reid <tyler.reid@grafana.com>
Signed-off-by: Peter Štibraný <pstibrany@gmail.com>
Signed-off-by: Peter Štibraný <pstibrany@gmail.com>
What this PR does
This PR adds a reset to
frameBytesLeft
when streaming chunked read responses. Before this change,streamChunkedReadResponses
would start writing one chunk per frame after the initial frame.Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]