Impala Public Jenkins has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/23416 )
Change subject: IMPALA-14426: Deflake TestImpalaShell.test_cancellation ...................................................................... IMPALA-14426: Deflake TestImpalaShell.test_cancellation 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-jenk...@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com> --- M shell/impala_shell/impala_shell.py 1 file changed, 4 insertions(+), 4 deletions(-) Approvals: Impala Public Jenkins: Looks good to me, approved; Verified -- To view, visit http://gerrit.cloudera.org:8080/23416 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I5403c7b8126b1a35ea841496fdfb6eb93e83376e Gerrit-Change-Number: 23416 Gerrit-PatchSet: 6 Gerrit-Owner: Riza Suminto <riza.sumi...@cloudera.com> Gerrit-Reviewer: Csaba Ringhofer <csringho...@cloudera.com> Gerrit-Reviewer: Daniel Vanko <dva...@cloudera.com> Gerrit-Reviewer: Impala Public Jenkins <impala-public-jenk...@cloudera.com> Gerrit-Reviewer: Noemi Pap-Takacs <npaptak...@cloudera.com> Gerrit-Reviewer: Riza Suminto <riza.sumi...@cloudera.com>