You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Randall Hauch (JIRA)" <ji...@apache.org> on 2018/04/03 05:34:00 UTC

[jira] [Created] (KAFKA-6740) Plugins class' newConverter and newHeaderConverter methods are unclear

Randall Hauch created KAFKA-6740:
------------------------------------

             Summary: Plugins class' newConverter and newHeaderConverter methods are unclear
                 Key: KAFKA-6740
                 URL: https://issues.apache.org/jira/browse/KAFKA-6740
             Project: Kafka
          Issue Type: Improvement
          Components: KafkaConnect
    Affects Versions: 1.1.0
            Reporter: Randall Hauch


The ClassLoaderUsage enum is a bit unclear as to what the code is doing. The `CURRENT_CLASSLOADER` is really about using the connector's configuration, whereas the `PLUGINS` literal is more about using the worker's configuration. We should clean this up, and we should also look at moving the if-block into the `CURRENT_CLASSLOADER` case in {{newConverter}}, just as we did in the {{newHeaderConverter}} method in KAFKA-6728.




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)