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 2020/03/11 22:08:00 UTC
[jira] [Created] (KAFKA-9708) Connector does not prefer to use
packaged classes during configuration
Greg Harris created KAFKA-9708:
----------------------------------
Summary: 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
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)