You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "majialoong (via GitHub)" <gi...@apache.org> on 2026/06/30 17:49:40 UTC

[PR] KAFKA-20751: Preserve available versions for cached connector plugin validation failures [kafka]

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

   Preserve the available plugin versions stored in cached connector plugin validation failures.
   
   This keeps repeated validation of an unavailable `connector.plugin.version` consistent with the initial validation response and avoids an NPE in the cached failure path.


-- 
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-unsubscribe@kafka.apache.org

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


Re: [PR] KAFKA-20751: Preserve available versions for cached connector plugin validation failures [kafka]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #22712:
URL: https://github.com/apache/kafka/pull/22712#issuecomment-4911275018

   A label of 'needs-attention' was automatically added to this PR in order to raise the
   attention of the committers. Once this issue has been triaged, the `triage` label
   should be removed to prevent this automation from happening again.


-- 
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-unsubscribe@kafka.apache.org

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


Re: [PR] KAFKA-20751: Preserve available versions for cached connector plugin validation failures [kafka]

Posted by "mimaison (via GitHub)" <gi...@apache.org>.
mimaison merged PR #22712:
URL: https://github.com/apache/kafka/pull/22712


-- 
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-unsubscribe@kafka.apache.org

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


Re: [PR] KAFKA-20751: Preserve available versions for cached connector plugin validation failures [kafka]

Posted by "majialoong (via GitHub)" <gi...@apache.org>.
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: jira-unsubscribe@kafka.apache.org

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