diff options
author | Mingfei <mingfei.shi@intel.com> | 2014-11-18 22:16:36 -0800 |
---|---|---|
committer | Patrick Wendell <pwendell@gmail.com> | 2014-11-18 22:16:36 -0800 |
commit | 67e9876b3e457b151c123fdb5ac2d8e8371e6acf (patch) | |
tree | 5f98d445bd323a231408efac1b537537f952ac3b /core | |
parent | 397d3aae5bde96b01b4968dde048b6898bb6c914 (diff) | |
download | spark-67e9876b3e457b151c123fdb5ac2d8e8371e6acf.tar.gz spark-67e9876b3e457b151c123fdb5ac2d8e8371e6acf.tar.bz2 spark-67e9876b3e457b151c123fdb5ac2d8e8371e6acf.zip |
[SPARK-4441] Close Tachyon client when TachyonBlockManager is shutdown
Currently Tachyon client is not closed when TachyonBlockManager is shut down. which causes some resources in Tachyon not reclaimed
Author: Mingfei <mingfei.shi@intel.com>
Closes #3299 from shimingfei/closeClient and squashes the following commits:
0913fbd [Mingfei] close Tachyon client when TachyonBlockManager is shutdown
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/scala/org/apache/spark/storage/TachyonBlockManager.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/main/scala/org/apache/spark/storage/TachyonBlockManager.scala b/core/src/main/scala/org/apache/spark/storage/TachyonBlockManager.scala index 6908a59a79..af87303421 100644 --- a/core/src/main/scala/org/apache/spark/storage/TachyonBlockManager.scala +++ b/core/src/main/scala/org/apache/spark/storage/TachyonBlockManager.scala @@ -148,6 +148,7 @@ private[spark] class TachyonBlockManager( logError("Exception while deleting tachyon spark dir: " + tachyonDir, e) } } + client.close() } }) } |