Skip to content

[release-v2.7] Fix querier panics #4901

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

Merged
merged 1 commit into from
Mar 25, 2025

Conversation

joe-elliott
Copy link
Collaborator

Backport 6d70705 from #4790


What this PR does:
A panic was introduced here by abusing the ring forEach function to collect results. replicationSet.Do can return before all reads are complete if quorum is reached. Under certain, rare circumstances this caused the forEach function to modify a result here after it has already been returned and was being marshalled by the gRPC stack into proto.

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

* fix forIngesterRings

Signed-off-by: Joe Elliott <number101010@gmail.com>

* fix generators

Signed-off-by: Joe Elliott <number101010@gmail.com>

* refactor to pass the funcs in directly

Signed-off-by: Joe Elliott <number101010@gmail.com>

* fix breaks

Signed-off-by: Joe Elliott <number101010@gmail.com>

* improve error

Signed-off-by: Joe Elliott <number101010@gmail.com>

* got rid of metrics collector

Signed-off-by: Joe Elliott <number101010@gmail.com>

* chagnelog

Signed-off-by: Joe Elliott <number101010@gmail.com>

* fix found behavior

Signed-off-by: Joe Elliott <number101010@gmail.com>

---------

Signed-off-by: Joe Elliott <number101010@gmail.com>
(cherry picked from commit 6d70705)
@joe-elliott joe-elliott added type/bug Something isn't working backport labels Mar 25, 2025
@joe-elliott joe-elliott marked this pull request as ready for review March 25, 2025 17:22
@joe-elliott joe-elliott merged commit b33945a into release-v2.7 Mar 25, 2025
22 checks passed
@joe-elliott joe-elliott deleted the backport-4790-to-release-v2.7 branch March 25, 2025 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport type/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants