You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by "Julia (JIRA)" <ji...@apache.org> on 2016/06/04 19:23:59 UTC

[jira] [Created] (REEF-1421) Transport Client inner thread is not canceled when object is disposed

Julia created REEF-1421:
---------------------------

             Summary: Transport Client inner thread is not canceled when object is disposed
                 Key: REEF-1421
                 URL: https://issues.apache.org/jira/browse/REEF-1421
             Project: REEF
          Issue Type: Bug
            Reporter: Julia


Currently, StreamingTransportClient starts a new task ResponseLoop, which reads a message with ReadAsync and sends it to the observer in a while loop with a cancellation token.

When StreamingTransportClient object is disposed, this task should be canceled with the cancellation token. Otherwise, the ResponseLoop will keep running and never end. However, we don't cancel it. After the task is completed, what we see in the logs are endless exception messages thrown from this loop as group communication has been ended. 

The same bug is in TransportClient. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)