-
Notifications
You must be signed in to change notification settings - Fork 199
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
TransformListener hangs in destructor when using dedicated thread #517
Comments
I have fixed this problem in this pull request. |
Hi! I have experienced the same problem on similar testcase.
Any updates on this issue? |
Are there any plans to fix this issue? I am seeing the same bug on humble, and can confirm that this patch fixes it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Required Info:
Steps to reproduce issue
I have noticed timeouts in my unit tests for node using TransformListener because o TransformListener hangs on destructor.
Here is a simple test:
Expected behaviour
Execution will not block on TransformListener destructor indefinitely.
Actual behavior
Execution blocks on TransformListener destructor indefinitely.
Additional information
This bug is caused by race condition with running and stopping SingleTreadedThreadSafeExecutor in TransformListener.
The current implementation is:
If the dedicated_listener_thread_ is not able to run before main thread enters destructor for TransformListener the destructor hangs because dedicated_listener_thread_ is spinning.
The order of execution is as follow:
executor.spinning = false
executor.spinning = true
The text was updated successfully, but these errors were encountered: