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)

Reply via email to