Uploaded image for project: 'AMQ Streams'
  1. AMQ Streams
  2. ENTMQST-5738

Stop Kafka Connect connectors using REST API does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • 2.5.1.GA, 2.6.0.GA
    • kafka-connect
    • None
    • False
    • None
    • False
    • Moderate

      As per proposal of adding support for stopping Kafka Connect connectors here:
      https://github.com/strimzi/proposals/blob/main/054-stopping-kafka-connect-connectors.md

      It says "Since Kafka 3.5, Kafka Connect connectors can also be stopped. This feature was added via KIP-875. Stopping a connector is done by using a new REST endpoint PUT /connectors/{connector}/stop."

      However, when tried to stop connectors using REST API, it does not work on both Streams 2.5.1 and Streams 2.6.0.

      AMQ Streams 2.5.1:

      curl -i -X PUT  https://test-connect-acp.apps.ocptest.company.com/connectors/debezium-connector-acp/stop
      HTTP/1.1 404 Not Found
      date: Thu, 22 Feb 2024 09:59:15 GMT
      content-length: 49
      server: Jetty(9.4.48.v20220622-redhat-00001)
      set-cookie: ad970f4feb0b9660911b45bae1ccda11=fbe89101bbc26a2b17dec14b36a7261c; path=/; HttpOnly; Secure; SameSite=None
      
      {"error_code":404,"message":"HTTP 404 Not Found"} 

      AMQ Streams 2.6.0:

      curl -v -X PUT https://debezium-connect-connect-0.debezium-connect-connect.dbz-mysql.svc/connectors/mysql-connector/stop
      * Trying 10.131.0.31...
      * TCP_NODELAY set
      * Connected to debezium-connect-connect-0.debezium-connect-connect.dbz-mysql.svc (10.131.0.31) port 8083 (#0)
      > PUT /connectors/mysql-connector/stop HTTP/1.1
      > Host: debezium-connect-connect-0.debezium-connect-connect.dbz-mysql.svc:8083
      > User-Agent: curl/7.61.1
      > Accept: */*
      >
      < HTTP/1.1 204 No Content
      < Date: Thu, 22 Feb 2024 13:28:02 GMT
      < Server: Jetty(9.4.53.v20231009-redhat-00001)
      

              Unassigned Unassigned
              rhn-support-qluo Joe Luo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: