-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
colexec: close disk resources in tests #106459
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @michae2 and @rharding6373)
-- commits
line 21 at r3:
I'm not sure about this. We have this best-effort notion that closing the head operator should trigger closing operators in the whole tree, and I'd rather investigate which operators don't do that. I'm a bit concerned that this commit could be hiding some problems. Even though at the vectorizedFlow
level we track most closers separately, it'd still be nice to improve our best-effort closing of everything by closing the head. Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @rharding6373 and @yuzefovich)
Previously, yuzefovich (Yahor Yuzefovich) wrote…
I'm not sure about this. We have this best-effort notion that closing the head operator should trigger closing operators in the whole tree, and I'd rather investigate which operators don't do that. I'm a bit concerned that this commit could be hiding some problems. Even though at the
vectorizedFlow
level we track most closers separately, it'd still be nice to improve our best-effort closing of everything by closing the head. Thoughts?
SGTM. I will try to figure out exactly which operators are not being closed.
Close the `PartitionedDiskQueue` at the end of `TestPartitionedDiskQueueSimulatedExternal/HashJoin`. Fixes: cockroachdb#106119 Release note: None
Fixes: cockroachdb#106119 Release note: None
94bcb9a
to
9b3f2d6
Compare
@cockroachdb/storage friends please ignore this PR (I temporarily cherry-picked #106195 to see what CI says). @michae2 hope you don't mind that I looked into this. I investigated several failures in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for picking this up! I'm sorry I let it fester. Last commit
Reviewed 3 of 3 files at r6, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @yuzefovich)
This commit makes the following adjustments that fix "leaked files" in the disk-spilling tests: - `orderedDistinct` now implements `colexecop.Closer` (needed for `TestExternalDistinct`) - `orderedAggregator` and `distinctChainOps` now implement `colexecop.Closer` (needed for `TestExternalHashAggregator`) - `TestCrossJoiner` is adjusted to explicitly close all closers when non-empty ON expression is used (in this case we have selection and projection operators on top of the cross joiner which currently don't implement the `Closer` interface). Release note: None
9b3f2d6
to
2cf55aa
Compare
No worries! The only exposed failure was in bors r=yuzefovich,michae2 |
👎 Rejected by too few approved reviews |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 33 of 34 files at r4, 3 of 3 files at r6, 2 of 2 files at r7, all commit messages.
Reviewable status: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @michae2)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors r=yuzefovich,michae2
Reviewable status: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @michae2)
Build succeeded: |
blathers backport 23.1 |
Should we also backport this to 23.2 to fixed #112868? |
It was merged before 23.2 was cut, so #112868 is a separate issue. |
Fixes: #106119
colcontainer: close PDQ during TestPartitionedDiskQueueSimulatedExternal
Close the
PartitionedDiskQueue
at the end ofTestPartitionedDiskQueueSimulatedExternal/HashJoin
.Release note: None
colexecutils: close SpillingBuffer during TestSpillingBuffer
Release note: None
colexec: make some operators implement colexecop.Closer interface
This commit makes the following adjustments that fix "leaked files" in
the disk-spilling tests:
orderedDistinct
now implementscolexecop.Closer
(needed forTestExternalDistinct
)orderedAggregator
anddistinctChainOps
now implementcolexecop.Closer
(needed forTestExternalHashAggregator
)TestCrossJoiner
is adjusted to explicitly close all closers whennon-empty ON expression is used (in this case we have selection and
projection operators on top of the cross joiner which currently don't
implement the
Closer
interface).Release note: None