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

store-gateway: dont leak goroutines when preloading #8546

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

dimitarvdimitrov
Copy link
Contributor

@dimitarvdimitrov dimitarvdimitrov commented Jun 27, 2024

What this PR does

I discovered this while working on #8389. This shouldn't be a bug today because nothing above the preloading iterator looks at the context (IIRC this was the reason I didn't check the context in the first place). But it can become a problem in the future. I also verified in a few production clusters at GL and couldn't spot a gradual increase in the number of goroutines.

It's blocking detecting leaking goroutines in my work for #8389, so I'd like to fix it first.

Which issue(s) this PR fixes or relates to

Fixes #

Checklist

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

I discovered this while working on XXX. This shouldn't be a bug today because nothing above the preloading iterator looks at the context. But it can become a problem in the future. I also verified in a few production clusters at GL and couldn't spot a gradual increase in the number of goroutines.

It's blocking detecting leaking goroutines in my work for XXX, so I'd like to fix it first.

Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
Copy link
Contributor

@narqo narqo left a comment

Choose a reason for hiding this comment

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

🔥

@dimitarvdimitrov dimitarvdimitrov merged commit c8ea639 into main Jun 27, 2024
31 checks passed
@dimitarvdimitrov dimitarvdimitrov deleted the dimitar/st-gw/preloading-goroutine-leak branch June 27, 2024 18:04
@dimitarvdimitrov
Copy link
Contributor Author

I merged this to unblock other PRs, but happy to address concerns or feedback later on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants