Skip to content

storage: always close iterators, batches in unit tests#71303

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
jbowens:jackson/defer-close-iters
Oct 8, 2021
Merged

storage: always close iterators, batches in unit tests#71303
craig[bot] merged 1 commit intocockroachdb:masterfrom
jbowens:jackson/defer-close-iters

Conversation

@jbowens
Copy link
Copy Markdown
Contributor

@jbowens jbowens commented Oct 7, 2021

This fixes a handful of instances where iterators and batches either
weren't closed, or weren't closed if the test failed because the Close
wasn't deferred.

There are more in the codebase, but I wanted to break this up a bit
since some of them are trickier to track down.

Release note: None

@jbowens jbowens requested review from a team as code owners October 7, 2021 22:45
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Collaborator

@sumeerbhola sumeerbhola left a comment

Choose a reason for hiding this comment

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

Thanks!
:lgtm:

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

This fixes a handful of instances where iterators and batches either
weren't closed, or weren't closed if the test failed because the Close
wasn't deferred.

There are more in the codebase, but I wanted to break this up a bit
since some of them are trickier to track down.

Release note: None
@jbowens jbowens force-pushed the jackson/defer-close-iters branch from 2845170 to fbb6e56 Compare October 8, 2021 14:55
Copy link
Copy Markdown
Contributor 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!

bors r=sumeerbhola

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @sumeerbhola)

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Oct 8, 2021

Build succeeded:

@craig craig bot merged commit a0d824a into cockroachdb:master Oct 8, 2021
@jbowens jbowens deleted the jackson/defer-close-iters branch August 31, 2022 21:31
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