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

Allow that the renamed blocker thread is terminated #3728

Merged

Conversation

aeons
Copy link
Member

@aeons aeons commented Jun 30, 2023

In WorkerThreadNameSpec, if the thread is readded to the compute pool, we still check that it has been renamed and has the correct index, but if the thread has been terminated in the mean time, that is ok as well.

Closes #3704

@armanbilge
Copy link
Member

Thanks! Can we actually apply this patch to the 3.5.x branch? Then we'll merge it up into 3.x. Hopefully that should avoid it being clobbered by a merge again...

@aeons aeons force-pushed the update-worker-thread-name-spec branch from 1e91a9b to 57ebc46 Compare July 3, 2023 06:57
@aeons aeons changed the base branch from series/3.x to series/3.5.x July 3, 2023 06:57
@aeons
Copy link
Member Author

aeons commented Jul 3, 2023

Changed branch and cherrypicked.

@armanbilge armanbilge closed this Jul 3, 2023
@armanbilge armanbilge reopened this Jul 3, 2023
durban
durban previously approved these changes Jul 7, 2023
Copy link
Contributor

@durban durban left a comment

Choose a reason for hiding this comment

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

It is not clear to me how could the blocker thread exit: the runtimeBlockingExpiration is 1 minute by default. Could this test take such a long time?

@armanbilge
Copy link
Member

the runtimeBlockingExpiration is 1 minute by default. Could this test take such a long time?

That's an interesting point. Since we are making a custom IORuntime for this test anyway, what if we just increased that expiration time? I can't remember if the configuration is exposed or hard-coded.

@durban
Copy link
Contributor

durban commented Jul 7, 2023

@aeons
Copy link
Member Author

aeons commented Jul 10, 2023

Switched it to expire threads after 10 minutes. Let's see if this fixes it.

Copy link
Member

@armanbilge armanbilge left a comment

Choose a reason for hiding this comment

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

Thanks!

@armanbilge armanbilge merged commit e20dac8 into typelevel:series/3.5.x Jul 10, 2023
@aeons aeons deleted the update-worker-thread-name-spec branch July 10, 2023 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WorkerThreadNameSpec seems a bit flaky in CI
3 participants