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

Dmitrii Kniazev commented on FLINK-5686:
----------------------------------------

I propose this solution for task:

{code:title=JobClientActor.java|borderStyle=solid}
if (jobManager != null && msg.address() != null) {
        // only print this message when we had been connected to a JobManager 
before
        logAndPrintMessage("New JobManager elected. Connecting to " + 
msg.address());
} else {
        logAndPrintMessage("JobManager not available. Client will reconnect 
after it will re-elected");
}
{code}

If it good enough, i can create PR.

> Print meaningful message when JM is lost
> ----------------------------------------
>
>                 Key: FLINK-5686
>                 URL: https://issues.apache.org/jira/browse/FLINK-5686
>             Project: Flink
>          Issue Type: Improvement
>          Components: Client
>            Reporter: Ufuk Celebi
>            Priority: Minor
>
> When a leading JM dies, the client prints:
> {code}
> New JobManager elected. Connecting to null
> {code}
> This is not helpful to the user. Instead it should inform the user that no 
> JobManager is available currently and that the client will reconnect as soon 
> as one is re-elected.



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

Reply via email to