You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@helix.apache.org by GitBox <gi...@apache.org> on 2020/10/03 02:27:54 UTC

[GitHub] [helix] kaisun2000 opened a new issue #1433: TestMultiZkHelixJavaApis has thread leakage

kaisun2000 opened a new issue #1433:
URL: https://github.com/apache/helix/issues/1433


   ```
         MOCK_PARTICIPANTS.forEach(mockParticipantManager -> {
           mockParticipantManager.syncStop();
           StateMachineEngine stateMachine = mockParticipantManager.getStateMachineEngine();
           if (stateMachine != null) {
             StateModelFactory stateModelFactory = stateMachine.getStateModelFactory("Task");
             if (stateModelFactory != null && stateModelFactory instanceof TaskStateModelFactory) {
               ((TaskStateModelFactory) stateModelFactory).shutdown();
             }
           }
         });
   
   ```
   
   shutdown() changed to shutdownNow() would be fine.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org