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

distsql: fix disk monitor leak on flow setup error #120557

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

yuzefovich
Copy link
Member

Previously, it was possible for the flow disk monitor to be created in newFlowContext and never stopped. This monitor is connected to the long-living temp storage monitor, which accumulates all of its children as of recently, so this would become a memory leak that is now fixed.

There is no release note given that the leak occurs only during error conditions that should be rare.

Informs: https://github.com/cockroachlabs/support/issues/2828

Epic: None

Release note: None

Previously, it was possible for the flow disk monitor to be created in
`newFlowContext` and never stopped. This monitor is connected to the
long-living temp storage monitor, which accumulates all of its children
as of recently, so this would become a memory leak that is now fixed.

There is no release note given that the leak occurs only during error
conditions that should be rare.

Epic: None

Release note: None
@yuzefovich yuzefovich added backport-23.1.x Flags PRs that need to be backported to 23.1 backport-23.2.x Flags PRs that need to be backported to 23.2. labels Mar 15, 2024
@yuzefovich yuzefovich requested a review from a team as a code owner March 15, 2024 16:41
Copy link

blathers-crl bot commented Mar 15, 2024

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@DrewKimball DrewKimball left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @yuzefovich)

@yuzefovich
Copy link
Member Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Mar 15, 2024

@craig craig bot merged commit f5f5940 into cockroachdb:master Mar 15, 2024
21 of 22 checks passed
@yuzefovich yuzefovich deleted the fix-disk-monitor branch March 15, 2024 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-23.1.x Flags PRs that need to be backported to 23.1 backport-23.2.x Flags PRs that need to be backported to 23.2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants