[
https://issues.apache.org/jira/browse/KAFKA-19524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chia-Ping Tsai resolved KAFKA-19524.
------------------------------------
Fix Version/s: 4.2.0
Resolution: Fixed
> connect-plugin-path crashes with UnsupportedOperationException on plugins
> without ServiceLoader manifests
> ---------------------------------------------------------------------------------------------------------
>
> Key: KAFKA-19524
> URL: https://issues.apache.org/jira/browse/KAFKA-19524
> Project: Kafka
> Issue Type: Bug
> Reporter: Sanskar Jhajharia
> Assignee: Sanskar Jhajharia
> Priority: Trivial
> Fix For: 4.2.0
>
>
> The connect-plugin-path tool crashes when processing plugins that have
> loadable classes but no ServiceLoader manifest files due to attempting to
> modify an immutable Collections.emptySet().
> Line 329 in ConnectPluginPath.java:
>
> {code:java}
> nonLoadableManifests.getOrDefault(pluginDesc.className(),
> Collections.emptySet()).remove(pluginDesc.type()); {code}
>
> When the plugin class doesn't exist in nonLoadableManifests, getOrDefault()
> returns immutable Collections.emptySet(), causing
> UnsupportedOperationException on .remove().
--
This message was sent by Atlassian Jira
(v8.20.10#820010)