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

storage: fix leaked iterators in unit tests #87229

Merged
merged 1 commit into from
Aug 31, 2022

Conversation

jbowens
Copy link
Collaborator

@jbowens jbowens commented Aug 31, 2022

Fix a couple instances of leaked iterators in unit tests in the storage
package.

This should also resolve the goroutine leak observed in #86256.

Informs #71481.

Release justification: Non-production code changes
Release note: None

Fix a couple instances of leaked iterators in unit tests in the storage
package.

This should also resolve the goroutine leak observed in cockroachdb#86256.

Informs cockroachdb#71481.

Release justification: Non-production code changes
Release note: None
@jbowens jbowens requested a review from a team as a code owner August 31, 2022 21:23
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@erikgrinaker erikgrinaker left a comment

Choose a reason for hiding this comment

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

Oh, my bad, thanks for tracking this down. How would I go about detecting this?

Copy link
Collaborator Author

@jbowens jbowens left a comment

Choose a reason for hiding this comment

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

TFTR!

There's really no good way right now other than changing this to panic on a non-nil error:

_ = p.db.Close()

I'm going to take a stab at doing that in #87232.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained

@jbowens
Copy link
Collaborator Author

jbowens commented Aug 31, 2022

bors r=erikgrinaker

@craig
Copy link
Contributor

craig bot commented Aug 31, 2022

Build succeeded:

@craig craig bot merged commit b272795 into cockroachdb:master Aug 31, 2022
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.

3 participants