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

DeadLetterQueueReporter leaks KafkaProducer instance

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.3.2, 2.6.0, 2.4.2, 2.5.1
    • connect
    • None

    Description

      The DeadLetterQueueReporter (introduced by KAFKA-6738) creates a KafkaProducer to report errors to Kafka, but does not clean up the producer, leaving many idle network threads open after tasks are stopped.

      Reproduction steps:
      Start a task that has a non-empty DLQ topic name
      Stop the task
      Observe the list of running threads

      Expected result:
      There is no thread related to the stopped task's DLQ left running

      Actual result:
      There is a thread named something like kafka-producer-network-thread | connector-dlq-producer-task-0" #1234 left running

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            gharris1727 Greg Harris
            gharris1727 Greg Harris
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment