[
https://issues.apache.org/jira/browse/FLINK-16836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Till Rohrmann closed FLINK-16836.
---------------------------------
Resolution: Fixed
Fixed via 7ff9ce16607fe345fa41d0c92eb956df4b31e067
> 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
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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)