You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 1, 2019. It is now read-only.
When ParallelClient.releaseExternalResources is called while ParallelTaskBuilder.execute is waiting for a task to complete is sync mode then ParallelTaskBiulder hangs forever in this while:
Could you add !Thread.currentThread().isInterrupted() condition to the while (if this will not break anything else :) )? Or react on interruption in some way.
The text was updated successfully, but these errors were encountered:
@kefasb thanks so much for trying parallec. Normally i do not need to run the releaseExternalResources if running as a server. what is the use case we need to release all the resources?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When
ParallelClient.releaseExternalResources
is called whileParallelTaskBuilder.execute
is waiting for a task to complete is sync mode thenParallelTaskBiulder
hangs forever in thiswhile
:parallec/src/main/java/io/parallec/core/ParallelTaskBuilder.java
Line 278 in 1b4f162
Even calling
interrupt
on executing thread (orshutdownNow
on executor) does not have a result, because interrupts are swallowed.Code snippet to reproduce:
Result:
PingThread-1
is sleeping forever.Could you add
!Thread.currentThread().isInterrupted()
condition to the while (if this will not break anything else :) )? Or react on interruption in some way.The text was updated successfully, but these errors were encountered: