diff options
author | Liang-Chi Hsieh <viirya@gmail.com> | 2014-11-28 18:04:05 -0800 |
---|---|---|
committer | Josh Rosen <joshrosen@databricks.com> | 2014-11-28 18:06:34 -0800 |
commit | 854fade2dcd6e8d0fe4bdc2ffe7d650cedfca47c (patch) | |
tree | bd6bdc1861fe55720fbde18085c30a07b4c7c742 /docs/building-spark.md | |
parent | 3a4609eada2ee0bfbcce0f4127b6a5363ae528e5 (diff) | |
download | spark-854fade2dcd6e8d0fe4bdc2ffe7d650cedfca47c.tar.gz spark-854fade2dcd6e8d0fe4bdc2ffe7d650cedfca47c.tar.bz2 spark-854fade2dcd6e8d0fe4bdc2ffe7d650cedfca47c.zip |
[SPARK-4597] Use proper exception and reset variable in Utils.createTempDir()
`File.exists()` and `File.mkdirs()` only throw `SecurityException` instead of `IOException`. Then, when an exception is thrown, `dir` should be reset too.
Author: Liang-Chi Hsieh <viirya@gmail.com>
Closes #3449 from viirya/fix_createtempdir and squashes the following commits:
36cacbd [Liang-Chi Hsieh] Use proper exception and reset variable.
(cherry picked from commit 49fe8797e64f10c574e0790b32a8c3fdc7e594a0)
Signed-off-by: Josh Rosen <joshrosen@databricks.com>
Diffstat (limited to 'docs/building-spark.md')
0 files changed, 0 insertions, 0 deletions