Revision 25431d79f7daf2a68298701154eb505c2a4add80 authored by Jungtaek Lim (HeartSaVioR) on 06 December 2019, 05:46:28 UTC, committed by Shixiong Zhu on 06 December 2019, 05:46:28 UTC
### What changes were proposed in this pull request? This patch prevents the cleanup operation in FileStreamSource if the source files belong to the FileStreamSink. This is needed because the output of FileStreamSink can be read with multiple Spark queries and queries will read the files based on the metadata log, which won't reflect the cleanup. To simplify the logic, the patch only takes care of the case of when the source path without glob pattern refers to the output directory of FileStreamSink, via checking FileStreamSource to see whether it leverages metadata directory or not to list the source files. ### Why are the changes needed? Without this patch, if end users turn on cleanup option with the path which is the output of FileStreamSink, there may be out of sync between metadata and available files which may break other queries reading the path. ### Does this PR introduce any user-facing change? No ### How was this patch tested? Added UT. Closes #26590 from HeartSaVioR/SPARK-29953. Authored-by: Jungtaek Lim (HeartSaVioR) <kabhwan.opensource@gmail.com> Signed-off-by: Shixiong Zhu <zsxwing@gmail.com>
1 parent 755d889
File | Mode | Size |
---|---|---|
spark-rm | ||
announce.tmpl | -rw-r--r-- | 649 bytes |
do-release-docker.sh | -rwxr-xr-x | 4.3 KB |
do-release.sh | -rwxr-xr-x | 2.4 KB |
generate-contributors.py | -rwxr-xr-x | 11.1 KB |
known_translations | -rw-r--r-- | 6.4 KB |
release-build.sh | -rwxr-xr-x | 16.0 KB |
release-tag.sh | -rwxr-xr-x | 3.9 KB |
release-util.sh | -rwxr-xr-x | 6.2 KB |
releaseutils.py | -rwxr-xr-x | 10.1 KB |
translate-contributors.py | -rwxr-xr-x | 12.3 KB |
vote.tmpl | -rw-r--r-- | 2.5 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...