GitHub user jerryshao opened a pull request: https://github.com/apache/spark/pull/15210
[SPARK-17604][SQL][Streaming] Supprt purging aged file entries in FileStreamSourceLog ## What changes were proposed in this pull request? Currently with [SPARK-15698](https://issues.apache.org/jira/browse/SPARK-15698), FileStreamSource metadata log will be compacted periodically (10 batches by default), this means compacted batch file will contain whole file entries been processed. With the time passed, the compacted batch file will be accumulated to a very large file. With [SPARK-17165](https://issues.apache.org/jira/browse/SPARK-17165), now FileStreamSource doesn't track the aged file entry in memory, but in the log we still keep the full logs, this is not necessary and quite time-consuming during recovery. So here propose to also add file entry purging ability to remove aged file entries. ## How was this patch tested? Unit test added. You can merge this pull request into a Git repository by running: $ git pull https://github.com/jerryshao/apache-spark SPARK-17604 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/15210.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #15210 ---- commit 20a6c4b2116c8b41bf675e40c0bb9a5297225051 Author: jerryshao <ss...@hortonworks.com> Date: 2016-09-23T02:20:12Z Supprt purging aged file entries in FileStreamSourceLog ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org