[ https://issues.apache.org/jira/browse/FLINK-16836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated FLINK-16836: ----------------------------------- Labels: pull-request-available (was: ) > 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 > Priority: Major > Labels: pull-request-available > 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)