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

ASF GitHub Bot commented on KAFKA-7444:
---------------------------------------

ryannedolan opened a new pull request #5702: KAFKA-7444: expose connector and 
task ID to SinkTasks
URL: https://github.com/apache/kafka/pull/5702
 
 
   There is currently no good way for a SinkTask to use 
SinkUtils.consumerGroupId(connectorId), as there is no good way for a SinkTask 
to know it's connector ID. I've exposed the task ID as well. Currently, task ID 
is exposed via toString() methods and TaskState.
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   

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


> expose connector, task IDs to SinkTasks
> ---------------------------------------
>
>                 Key: KAFKA-7444
>                 URL: https://issues.apache.org/jira/browse/KAFKA-7444
>             Project: Kafka
>          Issue Type: Improvement
>          Components: KafkaConnect
>    Affects Versions: 2.0.0
>            Reporter: Ryanne Dolan
>            Priority: Minor
>              Labels: newbie
>
> SinkTasks don't have access to their ConnectorTaskId, which would be useful 
> for logging and for using SinkUtils.consumerGroupId(id).
>  
> I suggest an id() method be added to SinkTaskContext and 
> WorkerSinkTaskContext.



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

Reply via email to