You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Abhijit Mane (Jira)" <ji...@apache.org> on 2021/09/27 07:20:00 UTC

[jira] [Assigned] (KAFKA-13325) kafka system tests stall

     [ https://issues.apache.org/jira/browse/KAFKA-13325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Abhijit Mane reassigned KAFKA-13325:
------------------------------------

    Assignee:     (was: Abhijit Mane)

> kafka system tests stall
> ------------------------
>
>                 Key: KAFKA-13325
>                 URL: https://issues.apache.org/jira/browse/KAFKA-13325
>             Project: Kafka
>          Issue Type: Bug
>          Components: system tests
>    Affects Versions: 3.0.0
>         Environment: 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
>            Reporter: Abhijit Mane
>            Priority: Major
>              Labels: easyfix
>         Attachments: sysTests_isAlive_error.txt
>
>
> 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 *'{color:#de350b}isAlive{color}'*
>  =========================================================
> *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
>  # 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)