You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Konstantine Karantasis (Jira)" <ji...@apache.org> on 2021/07/27 21:01:00 UTC

[jira] [Resolved] (KAFKA-13139) Empty response after requesting to restart a connector without the tasks results in NPE

     [ https://issues.apache.org/jira/browse/KAFKA-13139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konstantine Karantasis resolved KAFKA-13139.
--------------------------------------------
    Resolution: Fixed

> Empty response after requesting to restart a connector without the tasks results in NPE
> ---------------------------------------------------------------------------------------
>
>                 Key: KAFKA-13139
>                 URL: https://issues.apache.org/jira/browse/KAFKA-13139
>             Project: Kafka
>          Issue Type: Bug
>          Components: KafkaConnect
>    Affects Versions: 3.0.0
>            Reporter: Konstantine Karantasis
>            Assignee: Konstantine Karantasis
>            Priority: Blocker
>             Fix For: 3.0.0
>
>
> After https://issues.apache.org/jira/browse/KAFKA-4793 a response to restart only the connector (without any tasks) returns OK with an empty body. 
> As system test runs revealed, this causes an NPE in [https://github.com/apache/kafka/blob/trunk/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/rest/RestClient.java#L135]
> We should return 204 (NO_CONTENT) instead. 
> This is a regression from previous behavior, therefore the ticket is marked as a blocker candidate for 3.0



--
This message was sent by Atlassian Jira
(v8.3.4#803005)