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

ASF GitHub Bot commented on FLINK-9212:
---------------------------------------

Github user zentol commented on a diff in the pull request:

    https://github.com/apache/flink/pull/5893#discussion_r183632835
  
    --- Diff: 
flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/legacy/SubtasksAllAccumulatorsHandler.java
 ---
    @@ -97,15 +97,14 @@ public static String 
createSubtasksAccumulatorsJson(AccessExecutionJobVertex job
     
                gen.writeArrayFieldStart("subtasks");
     
    -           int num = 0;
                for (AccessExecutionVertex vertex : 
jobVertex.getTaskVertices()) {
     
                        TaskManagerLocation location = 
vertex.getCurrentAssignedResourceLocation();
                        String locationString = location == null ? 
"(unassigned)" : location.getHostname();
     
                        gen.writeStartObject();
     
    -                   gen.writeNumberField("subtask", num++);
    +                   gen.writeNumberField("subtask", 
vertex.getCurrentExecutionAttempt().getParallelSubtaskIndex());
    --- End diff --
    
    Let's keep this at it is.


> Port SubtasksAllAccumulatorsHandler to new REST endpoint
> --------------------------------------------------------
>
>                 Key: FLINK-9212
>                 URL: https://issues.apache.org/jira/browse/FLINK-9212
>             Project: Flink
>          Issue Type: Sub-task
>          Components: REST
>    Affects Versions: 1.5.0
>            Reporter: Chesnay Schepler
>            Assignee: Hai Zhou
>            Priority: Blocker
>             Fix For: 1.5.0
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to