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

Connect System tests are not waiting for REST resources to be registered

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

      Description

      I am getting an error while running Kafka tests:

      Traceback (most recent call last): File "/home/jenkins/workspace/system-test-kafka_5.3.x/kafka/venv/local/lib/python2.7/site-packages/ducktape-0.7.5-py2.7.egg/ducktape/tests/runner_client.py", line 132, in run data = self.run_test() File "/home/jenkins/workspace/system-test-kafka_5.3.x/kafka/venv/local/lib/python2.7/site-packages/ducktape-0.7.5-py2.7.egg/ducktape/tests/runner_client.py", line 189, in run_test return self.test_context.function(self.test) File "/home/jenkins/workspace/system-test-kafka_5.3.x/kafka/tests/kafkatest/tests/connect/connect_rest_test.py", line 89, in test_rest_api assert set([connector_plugin['class'] for connector_plugin in self.cc.list_connector_plugins()]) == \{self.FILE_SOURCE_CONNECTOR, self.FILE_SINK_CONNECTOR} File "/home/jenkins/workspace/system-test-kafka_5.3.x/kafka/tests/kafkatest/services/connect.py", line 218, in list_connector_plugins return self._rest('/connector-plugins/', node=node) File "/home/jenkins/workspace/system-test-kafka_5.3.x/kafka/tests/kafkatest/services/connect.py", line 234, in _rest raise ConnectRestError(resp.status_code, resp.text, resp.url) ConnectRestError
      

      From the logs, I see two messages:

      [2019-05-23 16:09:59,373] INFO REST server listening at http://172.31.39.205:8083/, advertising URL http://worker1:8083/ (org.apache.kafka.connect.runtime.rest.RestServer)
      

      and

      [2019-05-23 16:10:00,738] INFO REST resources initialized; server is started and ready to handle requests (org.apache.kafka.connect.runtime.rest.RestServer)
      

      it takes 1365 ms to actually load REST resources, but the test is waiting on a port to be listening.

        Attachments

          Activity

            People

            • Assignee:
              odiachenko Oleksandr Diachenko
              Reporter:
              odiachenko Oleksandr Diachenko
              Reviewer:
              Randall Hauch

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment