majialoong commented on PR #22712:
URL: https://github.com/apache/kafka/pull/22712#issuecomment-4846427811

   Before this change, validating the same unavailable connector plugin version 
twice could return a 500/NPE response instead of the normal validation result.
   
   Request: 
   ```
   
http://localhost:8083/connector-plugins/org.apache.kafka.connect.file.FileStreamSinkConnector/config/validate
   
   {
       "connector.class": 
"org.apache.kafka.connect.file.FileStreamSinkConnector",
       "connector.plugin.version": "2.0.1", // unavailable connector plugin 
version
       "tasks.max": "1",
       "topics": "test"
   }
   ```
   
   The second request will receive the following response:
   ```
   {
       "error_code": 500,
       "message": "java.lang.NullPointerException: Cannot invoke 
\"java.util.List.stream()\" because the return value of 
\"org.apache.kafka.connect.runtime.isolation.VersionedPluginLoadingException.availableVersions()\"
 is null"
   }
   ```
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to