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

Set DriverYieldSignal in Driver#close() #16395

Merged
merged 1 commit into from
Mar 8, 2023

Conversation

pettyjamesm
Copy link
Member

Description

Attempts to speed up driver termination by setting the DriverYieldSignal as part of Driver#close() so that long running in-memory operations that don't respond to interrupts can detect task termination sooner.

Additional context and related issues

Extracted from #15478 since it applies cleanly and improves the speed of driver threads stopping when tasks are canceled or aborted even when that isn't reflected in task status.

Release notes

(x) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
( ) Release notes are required, with the following suggested text:

@cla-bot cla-bot bot added the cla-signed label Mar 6, 2023
@pettyjamesm pettyjamesm requested a review from arhimondr March 6, 2023 23:23
Copy link
Contributor

@arhimondr arhimondr left a comment

Choose a reason for hiding this comment

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

LGTM % questions

@pettyjamesm pettyjamesm force-pushed the driver-yield-on-close branch from 04fb20e to beef7d9 Compare March 7, 2023 17:55
Attempts to speed up driver termination by setting the DriverYieldSignal
as part of Driver#close() so that long running in-memory operations that
don't respond to interrupts can detect task termination sooner.
@pettyjamesm pettyjamesm force-pushed the driver-yield-on-close branch from beef7d9 to d6f47eb Compare March 7, 2023 19:06
@pettyjamesm
Copy link
Member Author

Test failure seems to be caused by #16406

@arhimondr arhimondr merged commit b720463 into trinodb:master Mar 8, 2023
@pettyjamesm pettyjamesm deleted the driver-yield-on-close branch March 8, 2023 19:58
@github-actions github-actions bot added this to the 410 milestone Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants