[ 
https://issues.apache.org/jira/browse/SPARK-20971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16043150#comment-16043150
 ] 

Shixiong Zhu commented on SPARK-20971:
--------------------------------------

 FileStreamSource saves the seen files in the disk/HDFS, we can use the similar 
way like org.apache.spark.sql.execution.streaming.FileStreamSource.SeenFilesMap 
to purge the file entries.

> Purge the metadata log for FileStreamSource
> -------------------------------------------
>
>                 Key: SPARK-20971
>                 URL: https://issues.apache.org/jira/browse/SPARK-20971
>             Project: Spark
>          Issue Type: Improvement
>          Components: Structured Streaming
>    Affects Versions: 2.1.1
>            Reporter: Shixiong Zhu
>
> Currently 
> [FileStreamSource.commit|https://github.com/apache/spark/blob/16186cdcbce1a2ec8f839c550e6b571bf5dc2692/sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/FileStreamSource.scala#L258]
>  is empty. We can delete unused metadata logs in this method to reduce the 
> size of log files.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to