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

Chesnay Schepler commented on FLINK-19594:
------------------------------------------

In regards to {{getTaskNameWithSubtasks}}: Not sure what to say. There's always 
been this weird duality where in some cases counting from 1 is more intuitive 
(when doing things like subtask X of Y), and in others starting from 0 is 
_correct_ because it correlates to the actual subtask at runtime, which is 
required when querying metrics and the REST API.

As for the inconsistency in the REST API, we should fix it (== use 0), but I 
can't quite figure out where this inconsistency comes from. I couldn't quickly 
find the source in the WebUI nor REST handlers.

> SubTasks start index don't unified and may confuse users
> --------------------------------------------------------
>
>                 Key: FLINK-19594
>                 URL: https://issues.apache.org/jira/browse/FLINK-19594
>             Project: Flink
>          Issue Type: Improvement
>          Components: Runtime / Web Frontend
>            Reporter: zlzhang0122
>            Priority: Major
>         Attachments: BackPresures.png, Checkpoints.png, SubTasks.png
>
>
> In flink web ui page, subTasks index start from 0 in SubTasks tab while in 
> BackPressure tag start from 1, at the same time the subTasks index start from 
> 1 in Checkpoints page.I think this may confuse users and does there have some 
> design purpose ?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to