[ 
https://issues.apache.org/jira/browse/KAFKA-9708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17057438#comment-17057438
 ] 

ASF GitHub Bot commented on KAFKA-9708:
---------------------------------------

gharris1727 commented on pull request #8281: KAFKA-9708: Use PluginClassLoader 
during connector startup
URL: https://github.com/apache/kafka/pull/8281
 
 
   * Use classloading prioritization from Worker::startTask in 
Worker::startConnector
   
   Signed-off-by: Greg Harris <gr...@confluent.io>
   
   *Summary of testing strategy (including rationale)
   for the feature or bug fix. Unit and/or integration
   tests are expected for any behaviour change and
   system tests should be considered for larger changes.*
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> 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
>
> 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)

Reply via email to