Konstantine Karantasis created KAFKA-13139:
----------------------------------------------
Summary: 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
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)