Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-7880

KafkaConnect should standardize worker thread name

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.2.0
    • Component/s: KafkaConnect
    • Labels:

      Description

      KafkaConnect will create a WorkerTask for tasks assigned to it and then submit tasks to a thread pool.

      However,the Worker 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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lyssl0205 YeLiang
                Reporter:
                lyssl0205 YeLiang
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: