Skip to content

[release-1.12] Revert "Scheduler: Use a "scheduler" task for thread sleep (#57544)" #58764

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

Open
wants to merge 1 commit into
base: release-1.12
Choose a base branch
from

Conversation

kpamnany
Copy link
Member

This reverts commit 640c4e1.

See discussion.

Cc: @KristofferC to confirm that this PR is done correctly (to release-1.12).

Cc: @Keno to confirm whether reverting this on 1.12 alone is fine or if you want this reverted on master.

@Keno
Copy link
Member

Keno commented Jun 17, 2025

I'm ok with 1.12 only

@kpamnany
Copy link
Member Author

From the discussion in #58689:

Do we not properly try/catch/restart that task?

I was thinking of adding exactly this as an alternative to backing this out entirely. This patch can be considered a bugfix as it did close 2 issues.

We don't, but even if we did that, that would just result in us swallowing all InterruptExceptions.

The scheduler task should only be running if there are no other runnable tasks. If we add a try/catch to the scheduler task and swallow InterruptExceptions, then that seems to me like an adequate stopgap solution until there is action on #52291.

Thoughts @Keno and @vtjnash?

@gbaraldi
Copy link
Member

Can you open a PR that does the try catch behaviour? Just so that we can see how it behaves?

@kpamnany
Copy link
Member Author

Can you open a PR that does the try catch behaviour? Just so that we can see how it behaves?

See #58765.

@nsajko nsajko added the revert This reverts a previously merged PR. label Jun 17, 2025
@IanButterworth IanButterworth changed the title Revert "Scheduler: Use a "scheduler" task for thread sleep (#57544)" [release-1.12] Revert "Scheduler: Use a "scheduler" task for thread sleep (#57544)" Jun 17, 2025
@Keno
Copy link
Member

Keno commented Jun 17, 2025

I would pretty strongly advocate for a straight revert here. The problem with underdefined behavior is that people will have written their existing code to whatever happened to work, so even small changes are likely to break people's workflows. I don't see that the motivation to let the task be GC'ed slightly earlier is sufficiently strong to force this through and we don't have enough time left to really let people try a new behavior to assess impcat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
revert This reverts a previously merged PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants