GitHub user jerryshao opened a pull request:

    [SPARK-17604][SQL][Streaming] Supprt purging aged file entries in 

    ## What changes were proposed in this pull request?
    Currently with 
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](, 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 SPARK-17604

Alternatively you can review and apply these changes as the patch at:

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 <>
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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to