Skip to content
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

Fix partial query results #3440

Merged
merged 1 commit into from
Nov 12, 2020

Conversation

pracucci
Copy link
Contributor

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user (because not released yet)

Changes

The PR #3367 introduced a bug causing partial query results. The problem is: in decodeSeriesWithReq(), when the condition if maxt < req.MinTime is met, the chunk reference ref0 is not read from the index (and t0 not updated) and this breaks the decoding of subsequent chunks.

Verification

Unit and manual tests.

Signed-off-by: Marco Pracucci <[email protected]>
Copy link
Contributor

@yeya24 yeya24 left a comment

Choose a reason for hiding this comment

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

Thank you for the fix!

Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

Thank you for spotting this 😱

cc @yeya24

@bwplotka bwplotka merged commit 90579ba into thanos-io:master Nov 12, 2020
@pracucci pracucci deleted the fix-partial-query-results branch November 12, 2020 16:07
Oghenebrume50 pushed a commit to Oghenebrume50/thanos that referenced this pull request Dec 7, 2020
Signed-off-by: Marco Pracucci <[email protected]>
Signed-off-by: Oghenebrume50 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants