[ https://issues.apache.org/jira/browse/FLINK-18044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17217115#comment-17217115 ]
Steven Zhen Wu commented on FLINK-18044: ---------------------------------------- I agree with Stephan that code should avoid explicit assumptions about the parallelism and subtask index. But I also see the value of exposing subtask index for non-essential purpose. e.g. * right now, Kafka source adds a random number as `client.id` suffix. A subtask index is the more appropriate alternative. * logging with subtask index can help with troubleshooting. > Add the subtask index information to the SourceReaderContext. > ------------------------------------------------------------- > > Key: FLINK-18044 > URL: https://issues.apache.org/jira/browse/FLINK-18044 > Project: Flink > Issue Type: Sub-task > Components: Connectors / Common > Reporter: Jiangjie Qin > Priority: Major > Labels: pull-request-available > > It is useful for the `SourceReader` to retrieve its subtask id. For example, > Kafka readers can create a consumer with proper client id. -- This message was sent by Atlassian Jira (v8.3.4#803005)