[ 
https://issues.apache.org/jira/browse/SPARK-48314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jungtaek Lim resolved SPARK-48314.
----------------------------------
    Fix Version/s: 4.0.0
       Resolution: Fixed

Issue resolved by pull request 46627
[https://github.com/apache/spark/pull/46627]

> FileStreamSource shouldn't double cache files for availableNow
> --------------------------------------------------------------
>
>                 Key: SPARK-48314
>                 URL: https://issues.apache.org/jira/browse/SPARK-48314
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.5.1
>            Reporter: Adam Binford
>            Assignee: Adam Binford
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>
> FileStreamSource loads and saves all files at initialization for 
> Trigger.AvailableNow. However files will also be cached in unreadFiles, which 
> is a waste and causes issues identified in 
> https://issues.apache.org/jira/browse/SPARK-44924 for streams that are 
> reading more than 10k files per batch. We should always skip using the 
> unreadFiles cache when using available now trigger, as there is no need for 
> it anyway.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to