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

colexecargs: deeply reset monitor registry on Reset #120602

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

yuzefovich
Copy link
Member

@yuzefovich yuzefovich commented Mar 17, 2024

Given some recent issues we've had with leaks around memory monitors, it seems prudent to deeply reset the slice of monitors that is stored in the monitor registry object and is reused. Note that we haven't seen any evidence of leaks related to this registry, but this change might make things easier for GC, so seems worth it.

Epic: None

Release note: None

Given some recent issues we've had with leaks around memory monitors, it
seems prudent to deeply reset the slice of monitors that is stored in
the monitor registry object and is reused. Note that we haven't seen any
evidence of leaks related to this registry, but this change might make
things easier for GC, so seems worth it.

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 17, 2024
@yuzefovich yuzefovich requested a review from DrewKimball March 17, 2024 03:29
@yuzefovich yuzefovich requested a review from a team as a code owner March 17, 2024 03:29
Copy link

blathers-crl bot commented Mar 17, 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

@mgartner mgartner 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 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @DrewKimball)

@yuzefovich
Copy link
Member Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Mar 18, 2024

@craig craig bot merged commit 6681efb into cockroachdb:master Mar 18, 2024
21 of 36 checks passed
@yuzefovich yuzefovich deleted the monitor-registry branch March 18, 2024 17:45
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