zhijiangW commented on a change in pull request #8529: [FLINK-12603][network] 
Refactor InputGate interface to remove unnecessary methods
URL: https://github.com/apache/flink/pull/8529#discussion_r288599363
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/Task.java
 ##########
 @@ -310,19 +310,20 @@ public Task(
                Preconditions.checkArgument(0 <= attemptNumber, "The attempt 
number must be positive.");
                Preconditions.checkArgument(0 <= targetSlotNumber, "The target 
slot number must be positive.");
 
-               this.taskInfo = new TaskInfo(
-                               taskInformation.getTaskName(),
-                               taskInformation.getMaxNumberOfSubtaks(),
-                               subtaskIndex,
-                               taskInformation.getNumberOfSubtasks(),
-                               attemptNumber,
-                               String.valueOf(slotAllocationId));
+               this.taskInfo = TaskInfo.create(
+                       taskInformation.getTaskName(),
+                       taskInformation.getMaxNumberOfSubtaks(),
+                       taskInformation.getNumberOfSubtasks(),
+                       subtaskIndex,
+                       attemptNumber,
+                       String.valueOf(executionAttemptID),
 
 Review comment:
   The `TaskInfo` class is in flink-core module which could not rely on 
flink-runtime module. So it could not be done as that.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to