[ 
https://issues.apache.org/jira/browse/FLINK-5861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15894284#comment-15894284
 ] 

ASF GitHub Bot commented on FLINK-5861:
---------------------------------------

Github user tillrohrmann commented on a diff in the pull request:

    https://github.com/apache/flink/pull/3395#discussion_r104135429
  
    --- Diff: 
flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/JobManagerConnection.java
 ---
    @@ -98,4 +103,15 @@ public ResultPartitionConsumableNotifier 
getResultPartitionConsumableNotifier()
        public PartitionProducerStateChecker getPartitionStateChecker() {
                return partitionStateChecker;
        }
    +
    +   public void registerListener(JobManagerConnectionListener listener) {
    +           jobManagerConnectionListeners.add(listener);
    +   }
    +
    +   public void notifyListener(JobManagerConnection 
newJobManagerConnection) {
    --- End diff --
    
    At the moment, if a `JobManager` loses leadership, the 
`JobManagerConnection` will be closed.  Thus, in case a new `JobManager` 
reconnects, you won't have the `listeners` anymore to notify them.


> TaskManager's components support updating JobManagerConnection
> --------------------------------------------------------------
>
>                 Key: FLINK-5861
>                 URL: https://issues.apache.org/jira/browse/FLINK-5861
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Distributed Coordination, JobManager
>            Reporter: Biao Liu
>            Assignee: Biao Liu
>             Fix For: 1.3.0
>
>
> Some components in TaskManager, such as TaskManagerActions, 
> CheckpointResponder, ResultPartitionConsumableNotifier, 
> PartitionProducerStateChecker, need to support updating JobManagerConnection. 
> So when JobManager fails and recovers, the tasks who keep old 
> JobManagerConnection can be notified to update JobManagerConnection. The 
> tasks can continue doing their jobs without failure.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to