GitHub user jerryshao opened a pull request: https://github.com/apache/spark/pull/13513
[SPARK-15698][SQL][Streaming] Add the ability to remove the old MetadataLog in FileStreamSource ## What changes were proposed in this pull request? Current `metadataLog` in `FileStreamSource` will add a checkpoint file in each batch but do not have the ability to remove/compact, which will lead to large number of small files when running for a long time. So here propose to compact the old logs into one file. This method is quite similar to `FileStreamSinkLog` but simpler. ## 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-15698 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/13513.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 #13513 ---- commit 2ed1115966fdf8b6a8fba990599b230a04e00649 Author: jerryshao <ss...@hortonworks.com> Date: 2016-06-02T03:14:48Z Add the ability to remove the old MetadataLog in FileStreamSource ---- --- 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