sjhajharia opened a new pull request, #20222:
URL: https://github.com/apache/kafka/pull/20222

   ### Problem
   The connect-plugin-path tool crashes with `UnsupportedOperationException` 
when processing plugins that have loadable classes but no ServiceLoader 
manifest files.
   
   ### Root Cause
   Line 326 attempts to remove from an immutable `Collections.emptySet()`:
   ```java
   nonLoadableManifests.getOrDefault(pluginDesc.className(), 
Collections.emptySet()).remove(pluginDesc.type());
   ```
   
   ### Solution
   Replace `Collections.emptySet()` with `new HashSet<>()` to provide a mutable 
set.
   
   
   Resolves: [KAFKA-19524](https://issues.apache.org/jira/browse/KAFKA-19524)


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

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to