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 issue where concatenatingChunkIterator can obscure errors. #549

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

charleskorn
Copy link
Contributor

@charleskorn charleskorn commented Oct 23, 2023

This PR fixes a similar issue to #540, but this time for concatenatingChunkIterator: if a consumer of a concatenatingChunkIterator does not consume it all the way to the end (ie. until Next() returns false), it may not know to check for an error.

With this PR, concatenatingChunkIterator.Next() will instead begin returning false as soon as the current iterator reports an error.

@charleskorn charleskorn merged commit b01b1b7 into main Oct 24, 2023
6 checks passed
@charleskorn charleskorn deleted the charleskorn/concatenatingchunkiterator branch October 24, 2023 00:40
@pstibrany
Copy link
Member

Reverted in #562.

krajorama added a commit to grafana/mimir that referenced this pull request Nov 6, 2023
For grafana/mimir-prometheus#562
revert of grafana/mimir-prometheus#549

Ref: #incident-2023-11-06-cortex-ops-01-block-to-the-future

Signed-off-by: György Krajcsovits <[email protected]>
krajorama added a commit to grafana/mimir that referenced this pull request Nov 6, 2023
For grafana/mimir-prometheus#562
revert of grafana/mimir-prometheus#549

Ref: #incident-2023-11-06-cortex-ops-01-block-to-the-future

Signed-off-by: György Krajcsovits <[email protected]>
grafanabot pushed a commit to grafana/mimir that referenced this pull request Nov 6, 2023
For grafana/mimir-prometheus#562
revert of grafana/mimir-prometheus#549

Ref: #incident-2023-11-06-cortex-ops-01-block-to-the-future

Signed-off-by: György Krajcsovits <[email protected]>
(cherry picked from commit 4987dd5)
krajorama added a commit to grafana/mimir that referenced this pull request Nov 6, 2023
For grafana/mimir-prometheus#562
revert of grafana/mimir-prometheus#549

Ref: #incident-2023-11-06-cortex-ops-01-block-to-the-future

Signed-off-by: György Krajcsovits <[email protected]>
(cherry picked from commit 4987dd5)
grafanabot pushed a commit to grafana/mimir that referenced this pull request Nov 6, 2023
For grafana/mimir-prometheus#562
revert of grafana/mimir-prometheus#549

Ref: #incident-2023-11-06-cortex-ops-01-block-to-the-future

Signed-off-by: György Krajcsovits <[email protected]>
(cherry picked from commit 4987dd5)
krajorama added a commit to grafana/mimir that referenced this pull request Nov 6, 2023
For grafana/mimir-prometheus#562
revert of grafana/mimir-prometheus#549

Ref: #incident-2023-11-06-cortex-ops-01-block-to-the-future

Signed-off-by: György Krajcsovits <[email protected]>
(cherry picked from commit 4987dd5)
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.

5 participants