You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Konstantine Karantasis (Jira)" <ji...@apache.org> on 2020/08/19 04:14:00 UTC

[jira] [Updated] (KAFKA-9708) Connector does not prefer to use packaged classes during configuration

     [ https://issues.apache.org/jira/browse/KAFKA-9708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konstantine Karantasis updated KAFKA-9708:
------------------------------------------
    Fix Version/s: 2.6.0

> Connector does not prefer to use packaged classes during configuration
> ----------------------------------------------------------------------
>
>                 Key: KAFKA-9708
>                 URL: https://issues.apache.org/jira/browse/KAFKA-9708
>             Project: Kafka
>          Issue Type: Bug
>          Components: KafkaConnect
>            Reporter: Greg Harris
>            Assignee: Greg Harris
>            Priority: Major
>             Fix For: 2.6.0
>
>
> In connector tasks, classes loaded during configuration are preferentially loaded from the PluginClassLoader since KAFKA-8819 was implemented. This same prioritization is not currently respected in the connector itself, where the delegating classloader is used as the context classloader. This leads to the possibility for different versions of converters to be loaded, or different versions of dependencies to be found when executing code in the connector vs task.
> Worker::startConnector should be changed to follow the startTask / KAFKA-8819 prioritization scheme, by activating the PluginClassLoader earlier.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)