You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Greg Harris (Jira)" <ji...@apache.org> on 2022/12/12 17:38:00 UTC

[jira] [Created] (KAFKA-14464) Refactor MM2 connectors to make resource leaks from code defects less likely

Greg Harris created KAFKA-14464:
-----------------------------------

             Summary: Refactor MM2 connectors to make resource leaks from code defects less likely
                 Key: KAFKA-14464
                 URL: https://issues.apache.org/jira/browse/KAFKA-14464
             Project: Kafka
          Issue Type: Task
          Components: mirrormaker
            Reporter: Greg Harris
            Assignee: Greg Harris


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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)