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

Sagar Rao commented on KAFKA-15473:
-----------------------------------

[~satish.duggana], No the API documentation doesn't mention anything about the 
presence/absence of duplicate entries. This is what it says:

??GET /connector-plugins- return a list of connector plugins installed in the 
Kafka Connect cluster. Note that the API only checks for connectors on the 
worker that handles the request, which means you may see inconsistent results, 
especially during a rolling upgrade if you add new connector jars
??
I think the implicit assumption is that these would always return unique values 
but as Greg pointed out above, even pre-3.6 there could be cases in which this 
end point can return duplicate entries. Keeping that in mind, IMO this needn't 
be a release blocker and we can document it as you suggested. 

> Connect connector-plugins endpoint shows duplicate plugins
> ----------------------------------------------------------
>
>                 Key: KAFKA-15473
>                 URL: https://issues.apache.org/jira/browse/KAFKA-15473
>             Project: Kafka
>          Issue Type: Bug
>          Components: KafkaConnect
>    Affects Versions: 3.6.0
>            Reporter: Greg Harris
>            Assignee: Greg Harris
>            Priority: Major
>             Fix For: 3.6.0
>
>
> In <3.6.0-rc0, only one copy of each plugin would be shown. For example:
> {noformat}
>   {
>     "class": "org.apache.kafka.connect.storage.StringConverter",
>     "type": "converter"
>   },{noformat}
> In 3.6.0-rc0, there are multiple listings for the same plugin. For example:
>  
> {noformat}
>   {
>     "class": "org.apache.kafka.connect.storage.StringConverter",
>     "type": "converter"
>   },
>   {
>     "class": "org.apache.kafka.connect.storage.StringConverter",
>     "type": "converter"
>   },
>   {
>     "class": "org.apache.kafka.connect.storage.StringConverter",
>     "type": "converter"
>   },
>   {
>     "class": "org.apache.kafka.connect.storage.StringConverter",
>     "type": "converter"
>   },
>   {
>     "class": "org.apache.kafka.connect.storage.StringConverter",
>     "type": "converter"
>   },
>   {
>     "class": "org.apache.kafka.connect.storage.StringConverter",
>     "type": "converter",
>     "version": "3.6.0"
>   },{noformat}
> These duplicates appear to happen when a plugin with the same class name 
> appears in multiple locations/classloaders.
> When interpreting a connector configuration, only one of these plugins will 
> be chosen, so only one is relevant to show to users. The REST API should only 
> display the plugins which are eligible to be loaded, and hide the duplicates.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to