Github user StephanEwen commented on a diff in the pull request: https://github.com/apache/flink/pull/1386#discussion_r46773363 --- Diff: flink-core/src/main/java/org/apache/flink/api/common/functions/RuntimeContext.java --- @@ -65,6 +65,22 @@ int getIndexOfThisSubtask(); /** + * Gets the attempt number of this parallel subtask. First attempt is numbered 0. --- End diff -- I would add here something like: "The attempt number corresponds to how many times the task has been restarted (after a failure or cancellation) since the job was initially started."
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---