Joseph Wu created MESOS-6234:

             Summary: Potential socket leak during Zookeeper network changes
                 Key: MESOS-6234
             Project: Mesos
          Issue Type: Bug
          Components: libprocess
    Affects Versions: 1.0.0, 0.28.3
            Reporter: Joseph Wu
            Assignee: Joseph Wu
             Fix For: 0.28.3, 1.1.0, 1.0.2

There is a potential leak when using the version of {{link}} with 
{{RemoteConnection::RECONNECT}}.  This was originally implemented to refresh 
links during master recovery. 

The leak occurs here:
^ The comment here is not correct, as that is *not* the last reference to the 
{{existing}} socket.

At this point, the {{existing}} socket may be a perfectly valid link.  Valid 
links will all have a reference inside a callback loop created here:


We need to stop the callback loop but prevent any resulting {{ExitedEvents}} 
from being sent due to stopping the callback loop.  This means discarding the 
callback loop's future after we have called {{swap_implementing_socket}}.

This message was sent by Atlassian JIRA

Reply via email to