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

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

FreeeeLy commented on pull request #6275: KAFKA-7880:Naming worker thread by 
task id
URL: https://github.com/apache/kafka/pull/6275
 
 
   *More detailed description of your change,
   if necessary. The PR title and PR message become
   the squashed commit message, so use a separate
   comment to ping reviewers.*
   
   *Summary of testing strategy (including rationale)
   for the feature or bug fix. Unit and/or integration
   tests are expected for any behaviour change and
   system tests should be considered for larger changes.*
   
   ### 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


> KafkaConnect should standardize worker thread name
> --------------------------------------------------
>
>                 Key: KAFKA-7880
>                 URL: https://issues.apache.org/jira/browse/KAFKA-7880
>             Project: Kafka
>          Issue Type: Improvement
>          Components: KafkaConnect
>    Affects Versions: 2.1.0
>            Reporter: YeLiang
>            Assignee: YeLiang
>            Priority: Minor
>
> KafkaConnect will create a WorkerTask for tasks assigned to it and then 
> submit tasks to a thread pool.
> However,the 
> [Worker|https://github.com/apache/kafka/blob/2.1.0/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/Worker.java]
>  class initializes its thread pool using a default ThreadFactory.So the 
> thread name will have a pattern pool-[0-9]\-thread\-[0-9].
> When we are running KafkaConnect and find that one of the task thread is 
> under high CPU usage, it is difficult for us to find out which task is under 
> high load becasue when we print out the stack of KafkaConnect, we can only 
> see a list of threads name pool-[0-9]\-thread\-[0-9] even if we can know the 
> exact pid of the high CPU usage thread
> If worker threads name will be named like connectorName-taskId, it will be 
> very helpful



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

Reply via email to