Description
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.
Attachments
Issue Links
- is related to
-
KAFKA-14670 Refactor connect plugins to be called from wrapper classes
- In Progress
- links to