diff options
author | Marcelo Vanzin <vanzin@cloudera.com> | 2015-11-12 14:29:16 -0800 |
---|---|---|
committer | Marcelo Vanzin <vanzin@cloudera.com> | 2015-11-12 14:29:16 -0800 |
commit | 767d288b6b33a79d99324b70c2ac079fcf484a50 (patch) | |
tree | 405830e799677dda7a8edaa469077fca9977e091 /R/run-tests.sh | |
parent | d292f74831de7e69c852ed26d9c15df85b4fb568 (diff) | |
download | spark-767d288b6b33a79d99324b70c2ac079fcf484a50.tar.gz spark-767d288b6b33a79d99324b70c2ac079fcf484a50.tar.bz2 spark-767d288b6b33a79d99324b70c2ac079fcf484a50.zip |
[SPARK-11655][CORE] Fix deadlock in handling of launcher stop().
The stop() callback was trying to close the launcher connection in the
same thread that handles connection data, which ended up causing a
deadlock. So avoid that by dispatching the stop() request in its own
thread.
On top of that, add some exception safety to a few parts of the code,
and use "destroyForcibly" from Java 8 if it's available, to force
kill the child process. The flip side is that "kill()" may not actually
work if running Java 7.
Author: Marcelo Vanzin <vanzin@cloudera.com>
Closes #9633 from vanzin/SPARK-11655.
Diffstat (limited to 'R/run-tests.sh')
0 files changed, 0 insertions, 0 deletions