[
https://issues.apache.org/jira/browse/FLINK-16620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17064213#comment-17064213
]
Jiayi Liao commented on FLINK-16620:
------------------------------------
It seems that the easiest way to implement this is adding attempt in
#TaskInfo#taskNameWithSubtasks.
{code:java}
this.taskNameWithSubtasks = taskName + " (" + (indexOfSubtask + 1) + '/' +
numberOfParallelSubtasks + ')' + " - execution #" + attemptNumber;
{code}
> Add attempt information in logging
> ----------------------------------
>
> Key: FLINK-16620
> URL: https://issues.apache.org/jira/browse/FLINK-16620
> Project: Flink
> Issue Type: Improvement
> Components: Runtime / Task
> Affects Versions: 1.10.0
> Reporter: Jiayi Liao
> Assignee: Jiayi Liao
> Priority: Minor
>
> Currently logging in places such as {{Task}} and {{StreamTask}} , is using
> {{taskNameWithSubtasks}} in {{TaskInfo}} to represent an execution. I think
> it'll be more user-friendly if we can add attempt information into the
> logging.
> The format can be consitent with logging information in {{Execution}} :
> {code:java}
> MySink (3/10) - execution #0
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)