diff options
author | Tathagata Das <tathagata.das1565@gmail.com> | 2016-11-14 10:03:01 -0800 |
---|---|---|
committer | Shixiong Zhu <shixiong@databricks.com> | 2016-11-14 10:03:01 -0800 |
commit | bdfe60ac921172be0fb77de2f075cc7904a3b238 (patch) | |
tree | 8101361c24ee69fb14d4dbfc0f4bb872c9d7c0dc /R | |
parent | 9d07ceee7860921eafb55b47852f1b51089c98da (diff) | |
download | spark-bdfe60ac921172be0fb77de2f075cc7904a3b238.tar.gz spark-bdfe60ac921172be0fb77de2f075cc7904a3b238.tar.bz2 spark-bdfe60ac921172be0fb77de2f075cc7904a3b238.zip |
[SPARK-18416][STRUCTURED STREAMING] Fixed temp file leak in state store
## What changes were proposed in this pull request?
StateStore.get() causes temporary files to be created immediately, even if the store is not used to make updates for new version. The temp file is not closed as store.commit() is not called in those cases, thus keeping the output stream to temp file open forever.
This PR fixes it by opening the temp file only when there are updates being made.
## How was this patch tested?
New unit test
Author: Tathagata Das <tathagata.das1565@gmail.com>
Closes #15859 from tdas/SPARK-18416.
Diffstat (limited to 'R')
0 files changed, 0 insertions, 0 deletions