You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Till Rohrmann (Jira)" <ji...@apache.org> on 2020/03/27 16:45:00 UTC

[jira] [Created] (FLINK-16836) Losing leadership does not clear rpc connection in JobManagerLeaderListener

Till Rohrmann created FLINK-16836:
-------------------------------------

             Summary: Losing leadership does not clear rpc connection in JobManagerLeaderListener
                 Key: FLINK-16836
                 URL: https://issues.apache.org/jira/browse/FLINK-16836
             Project: Flink
          Issue Type: Bug
          Components: Runtime / Coordination
    Affects Versions: 1.11.0
            Reporter: Till Rohrmann
            Assignee: Till Rohrmann
             Fix For: 1.11.0


When losing the leadership the {{JobManagerLeaderListener}} closes the current {{rpcConnection}} but does not clear the field. This can lead to a failure of {{JobManagerLeaderListener#reconnect}} if this method is called after the {{JobMaster}} has lost its leadership.

I propose to clear the field so that {{RegisteredRpcConnection#tryReconnect}} won't be called on a closed rpc connection.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)