Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-10774

connection leak when partition discovery is disabled and open throws exception

    XMLWordPrintableJSON

Details

    Description

      Here is the scenario to reproduce the issue

      • partition discovery is disabled
      • open method throws an exception (e.g. when broker SSL authorization denies request)

      In this scenario, run method won't be executed. As a result, partitionDiscoverer.close() won't be called. that caused the connection leak, because KafkaConsumer is initialized but not closed. That has caused outage that brought down our Kafka cluster, when a high-parallelism job got into a restart/failure loop.

      Attachments

        Issue Links

          Activity

            People

              trohrmann Till Rohrmann
              stevenz3wu Steven Zhen Wu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h