Fix Java CI crash caused by incorrect destruction order in core worker (#10709)

This commit is contained in:
Kai Yang
2020-09-11 17:33:09 +08:00
committed by Barak Michener
parent df77a31242
commit edd9916e30
3 changed files with 10 additions and 7 deletions
+4
View File
@@ -16,6 +16,10 @@ run_testng() {
fi
# exit_code == 2 means there are skipped tests.
if [ $exit_code -ne 2 ] && [ $exit_code -ne 0 ] ; then
if [ $exit_code -gt 128 ] ; then
# Test crashed. Print the driver log for diagnosis.
cat /tmp/ray/session_latest/logs/java-core-driver-*
fi
find . -name "hs_err_*log" -exec cat {} +
exit $exit_code
fi