You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/05/23 15:55:00 UTC

[jira] [Commented] (KAFKA-8415) Interface ConnectorClientConfigOverridePolicy needs to be excluded from class loading isolation

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

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

kkonstantine commented on pull request #6796: KAFKA-8415: Interface ConnectorClientConfigOverridePolicy needs to be excluded from class loading isolation
URL: https://github.com/apache/kafka/pull/6796
 
 
   * New Connect plugin interface ConnectorClientConfigOverridePolicy needs to be excluded from the class loading isolation
   
   * Added missing unit tests similar to the ones existing for previous plugins
   
   ### 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:
users@infra.apache.org


> Interface ConnectorClientConfigOverridePolicy needs to be excluded from class loading isolation
> -----------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-8415
>                 URL: https://issues.apache.org/jira/browse/KAFKA-8415
>             Project: Kafka
>          Issue Type: Bug
>          Components: KafkaConnect
>    Affects Versions: 2.3.0
>            Reporter: Konstantine Karantasis
>            Assignee: Konstantine Karantasis
>            Priority: Blocker
>             Fix For: 2.3.0
>
>
> Classes or interfaces that implement {{ConnectorClientConfigOverridePolicy}} were recently added in Connect as plugins that can be loaded in class loading isolation. 
> However the interface itself was not excluded from isolation itself, which results into definition conflicts. Any interface that is considered a base Connect plugin interface needs to be excluded by isolation itself (it's considered a "system" type). 
> Here's the exception: 
> {code:java}
> [2019-05-23 15:16:57,802] ERROR Stopping due to error (org.apache.kafka.connect.cli.ConnectDistributed:84) java.util.ServiceConfigurationError: org.apache.kafka.connect.connector.policy.ConnectorClientConfigOverridePolicy: Provider org.apache.kafka.connect.connector.policy.AllConnectorClientConfigOverridePolicy not a subtype         at java.util.ServiceLoader.fail(ServiceLoader.java:239)         at java.util.ServiceLoader.access$300(ServiceLoader.java:185)         at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:376)         at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)         at java.util.ServiceLoader$1.next(ServiceLoader.java:480)         at org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader.getServiceLoaderPluginDesc(DelegatingClassLoader.java:343)         at org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader.scanPluginPath(DelegatingClassLoader.java:317)         at org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader.scanUrlsAndAddPlugins(DelegatingClassLoader.java:244)         at org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader.registerPlugin(DelegatingClassLoader.java:236)         at org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader.initPluginLoader(DelegatingClassLoader.java:205)         at org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader.initLoaders(DelegatingClassLoader.java:182)         at org.apache.kafka.connect.runtime.isolation.Plugins.<init>(Plugins.java:61)         at org.apache.kafka.connect.cli.ConnectDistributed.startConnect(ConnectDistributed.java:91)         at org.apache.kafka.connect.cli.ConnectDistributed.main(ConnectDistributed.java:78)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)