mirror of
https://github.com/apache/impala.git
synced 2025-12-25 02:03:09 -05:00
TestImpalaShell.test_cancellation start failing when run with Python 3.9 with following error message RuntimeError: reentrant call inside <_io.BufferedWriter name='<stderr>'> This patch is a quick fix the by changing the stderr write from using print() to os.write(). Note that the thread-safetyness isssue within _signal_handler in impala_shell.py during query cancellation still remains. Testing: Run and pass test_cancellation in RHEL9 with Python 3.9. Change-Id: I5403c7b8126b1a35ea841496fdfb6eb93e83376e Reviewed-on: http://gerrit.cloudera.org:8080/23416 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>