Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Jun 28, 2023

This change is designed fix address pthread thread flakiness around process termination. For example see #19683 and #15014.

In some cases I believe that workers are being terminated while they have postMessage messages in their queue, so messages are getting lost.

In other cases we are seeing message arrive after the call to terminate().

This change attempts to avoid using terminate() at all and attempts to cooperatively shut down the worker. We only use terminate() if the thread doesn't respond in a certain amount of time.

@sbc100 sbc100 force-pushed the async_pthread_shutdown branch from d837bca to 8a92803 Compare June 28, 2023 18:16
This change is designed fix address pthread thread flakiness around
process termination.  For example see #19683 and #15014.

In some cases I believe that workers are being terminated while they
have postMessage messages in their queue, so messages are getting lost.

In other cases we are seeing message arrive after the call to
`terminate()`.

This change attempts to avoid using `terminate()` at all and attempts
to cooperatively shut down the worker.  We only use `terminate()` if the
thread doesn't respond in a certain amount of time.
@sbc100 sbc100 force-pushed the async_pthread_shutdown branch from 8a92803 to ba07983 Compare June 29, 2023 00:48
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.

2 participants