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

Refactor MM2 connectors to make resource leaks from code defects less likely

    XMLWordPrintableJSON

Details

    • Task
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • mirrormaker
    • None

    Description

      The MirrorMaker2 connectors instantiate many closeable resources during start() which must be closed in the corresponding stop() method. If a new resource is created, a code defect may be introduced by not updating the stop() method to close the resource, and leaking that resource after the lifetime of the connector.

      We should refactor these connectors in some fashion which makes these defects less likely, and explicitly manage the lifetime of these background resources rather than relying on developer & reviewer due diligence.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: