Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-13139

Empty response after requesting to restart a connector without the tasks results in NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • connect
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              kkonstantine Konstantine Karantasis
              kkonstantine Konstantine Karantasis
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: