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:45 -0800 |
commit | d1d6de630faad23f5f88f6c5a254720546d97c72 (patch) | |
tree | 40ba1de7a7feef857a5d1dbd095369b61716e37d /core | |
parent | 790c8741e70032b2852125ea509f7dc85e9faea8 (diff) | |
download | spark-d1d6de630faad23f5f88f6c5a254720546d97c72.tar.gz spark-d1d6de630faad23f5f88f6c5a254720546d97c72.tar.bz2 spark-d1d6de630faad23f5f88f6c5a254720546d97c72.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
(cherry picked from commit 67e9876b3e457b151c123fdb5ac2d8e8371e6acf)
Signed-off-by: Patrick Wendell <pwendell@gmail.com>
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() } }) } |