[ https://issues.apache.org/jira/browse/KAFKA-13325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17427180#comment-17427180 ]
Michal Toth commented on KAFKA-13325: ------------------------------------- Hello, is there any activity on this issue please? It's a simple change in method name. The question is only python 3.6/7 vs python 3.9+. Thank you > 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)