Sanskar Jhajharia created KAFKA-19524:
-----------------------------------------
Summary: 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
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)