[ 
https://issues.apache.org/jira/browse/MESOS-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16298557#comment-16298557
 ] 

Jan Schlicht commented on MESOS-8349:
-------------------------------------

Discarding a {{Future}} (instead of discarding its {{Promise}}) won't call 
{{onAny}} callbacks, only a {{onDiscarded}} callback that we haven't set up 
here.

> When a resource provider driver is disconnected, it fails to reconnect.
> -----------------------------------------------------------------------
>
>                 Key: MESOS-8349
>                 URL: https://issues.apache.org/jira/browse/MESOS-8349
>             Project: Mesos
>          Issue Type: Bug
>    Affects Versions: 1.5.0
>            Reporter: Jan Schlicht
>            Assignee: Jan Schlicht
>              Labels: mesosphere
>
> If the resource provider manager closes the HTTP connection of a resource 
> provider, the resource provider should reconnect itself. For that, the 
> resource provider driver will change its state to "DISCONNECTED", call a 
> {{disconnected}} callback and use its endpoint detector to reconnect.
> This doesn't work in a testing environment where a 
> {{ConstantEndpointDetector}} is used. While the resource provider is notified 
> of the closed HTTP connection (and logs {{End-Of-File received}}), it never 
> disconnects itself and calls the {{disconnected}} callback. Discarding 
> {{HttpConnectionProcess::detection}} in 
> {{HttpConnectionProcess::disconnected}} doesn't trigger the {{onAny}} 
> callback of that future. This might not be a problem in 
> {{HttpConnectionProcess}} but could be related to the test case using a 
> {{ConstantEndpointDetector}}.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to