Project: mesos
Issue MESOS-4858: Make changes to executor v1 library around managing connections.
While implementing pipelining changes for the scheduler library (MESOS-3570), we noticed a couple of small bugs that we would like to fix in the executor library: - Don't pass {{Connection}} objects to {{defer}} callbacks as they can sometimes lead to deadlocks. - Minor cleanups around not accepting {{SUBSCRIBE}} call if one is currently in progress. - Create a random UUID (connectionId) before we initiate a connection to the agent, as in some scenarios, we can accept connection attempts from stale connections.
Story points: 3