[
https://issues.apache.org/jira/browse/FLINK-2488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15043997#comment-15043997
]
ASF GitHub Bot commented on FLINK-2488:
---------------------------------------
Github user StephanEwen commented on a diff in the pull request:
https://github.com/apache/flink/pull/1386#discussion_r46773693
--- Diff:
flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/Task.java ---
@@ -120,16 +121,9 @@
/** The execution attempt of the parallel subtask */
private final ExecutionAttemptID executionId;
- /** The index of the parallel subtask, in [0, numberOfSubtasks) */
- private final int subtaskIndex;
+ /** TaskInfo object for this task */
+ private final TaskInfo taskInfo;
- /** The number of parallel subtasks for the
JobVertex/ExecutionJobVertex that this task belongs to */
- private final int parallelism;
-
- /** The name of the task */
- private final String taskName;
-
- /** The name of the task, including the subtask index and the
parallelism */
private final String taskNameWithSubtask;
--- End diff --
This field is also subsumed by the `TaskInfo`
> Expose attemptNumber in RuntimeContext
> --------------------------------------
>
> Key: FLINK-2488
> URL: https://issues.apache.org/jira/browse/FLINK-2488
> Project: Flink
> Issue Type: Improvement
> Components: JobManager, TaskManager
> Affects Versions: 0.10.0
> Reporter: Robert Metzger
> Assignee: Sachin Goel
> Priority: Minor
>
> It would be nice to expose the attemptNumber of a task in the
> {{RuntimeContext}}.
> This would allow user code to behave differently in restart scenarios.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)