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

Signal the worker progress event from the worker progress thread #28

Merged
merged 2 commits into from
Apr 12, 2023

Conversation

pentschev
Copy link
Member

Without signaling the worker progress event from the worker progress thread while shutting down the thread it may occur that the thread hangs as the event never gets awaken due to the lack of tasks to progress. This change ensures the worker progress event is signaled before joining the thread.

Without signaling the worker progress event from the worker progress
thread while shutting down the thread it may occur that the thread hangs
as the event never gets awaken due to the lack of tasks to progress.
This change ensures the worker progress event is signaled before joining
the thread.
@pentschev pentschev added bug Something isn't working non-breaking Introduces a non-breaking change labels Apr 11, 2023
@pentschev pentschev requested a review from a team April 11, 2023 12:58
Copy link
Contributor

@wence- wence- left a comment

Choose a reason for hiding this comment

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

I think this makes sense.

cpp/src/worker_progress_thread.cpp Show resolved Hide resolved
cpp/src/worker.cpp Show resolved Hide resolved
@wence-
Copy link
Contributor

wence- commented Apr 11, 2023

I think this makes sense.

Although that said, it looks like the test suite segfaulted?

@pentschev
Copy link
Member Author

Although that said, it looks like the test suite segfaulted?

It didn't segfault, it timed out. I can reproduce that locally and it's hitting #15 , although in CI it seems to hang indefinitely. That issue is not related to this PR specifically and is happening since we added CI. I'm still investigating it but going to go ahead and merge this when CI passes, as it fixed timeouts when running C++ examples.

Thanks @wence- !

@pentschev
Copy link
Member Author

/merge

@pentschev pentschev merged commit 5484d92 into rapidsai:main Apr 12, 2023
@pentschev pentschev deleted the fix-stop-progress-thread branch April 19, 2023 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working non-breaking Introduces a non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants