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

kafka system tests stall

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0
    • None
    • system tests
    • Issue tested in environments below but is independent of h/w arch. or Linux flavor: -
      1.) RHEL-8.3 on x86_64
      2.) RHEL-8.3 on IBM Power (ppc64le)
      3.) kafka tag: 3.0.0
    • Important

    Description

      Hello,

      I tried system tests as per: (https://github.com/apache/kafka/tree/trunk/tests#readme)

      =========================================================
      PROBLEM
      ~~~~~~
      git clone https://github.com/apache/kafka.git && cd kafka
      bash tests/docker/run_tests.sh

      Tests stall after a while (log attached): -
      [INFO:2021-09-22 06:08:41,637]: Triggering test 37 of 882...
      [INFO:2021-09-22 06:08:41,650]: RunnerClient: Loading test {'directory': '/opt/kafka-dev/tests/kafkatest/tests/core', 'file_name': 'throttling_test.py', 'cls_name': 'ThrottlingTest', 'method_name': 'test_throttled_reassignment'}

      File "/opt/kafka-dev/tests/kafkatest/services/monitor/http.py", line 191, in stop
      if self._accept_thread.isAlive(): AttributeError: 'Thread' object has no attribute 'isAlive'
      =========================================================

      PROPOSAL
      ~~~~~~~
      From [|https://github.com/apache/kafka/blob/trunk/tests/docker/Dockerfile], we have:   "FROM openjdk:8"

      • base image used to be based on Debian-10 earlier, now it seems to be updated to Debian-11
      1. docker run openjdk:8 python3 -V
        Python 3.9.2    // python 3.9.2 doesn't support deprecated "isAlive" method, is_alive should be used

      Deb-10 based image had python 3.7 which supports isAlive. python 3.8 is the last version to support it and deprecated for later python versions.
      Making the is_alive change in "tests/kafkatest/services/monitor/http.py" allowed sysTests to continue.
      =========================================================

       

      Question to kafka SME
      -------------------------
      Do you believe this is a valid problem and the fix is acceptable?
      Please let me know and I am happy to submit a PR.

       

      Thanks.

      Attachments

        1. sysTests_isAlive_error.txt
          2 kB
          Abhijit Mane

        Activity

          People

            Unassigned Unassigned
            abhijmanrh Abhijit Mane
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: