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

passing a "method" into the `Utils.closeQuietly` method cause NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.0
    • 3.4.0
    • connect
    • None

    Description

      Utils.closeQuietly method accepts `AutoCloseable` object, and close it. But there are some places we passed "method" into Utils.closeQuietly, which causes the object doesn't get closed as expected.

      I found it appeared in:

      • WorkerConnector
      • AbstractWorkerSourceTask
      • KafkaConfigBackingStore

       

      Attachments

        Issue Links

          Activity

            People

              sagarrao Sagar Rao
              showuon Luke Chen
              Chris Egerton Chris Egerton
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: