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

Josh Rosen resolved SPARK-4764.
-------------------------------
       Resolution: Fixed
    Fix Version/s: 1.2.1

I've backported this into {{branch-1.2}} for inclusion in 1.2.1, so I'm marking 
this as Fixed.

> Ensure that files are fetched atomically
> ----------------------------------------
>
>                 Key: SPARK-4764
>                 URL: https://issues.apache.org/jira/browse/SPARK-4764
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 1.1.0
>            Reporter: Christophe PRÉAUD
>            Assignee: Christophe PRÉAUD
>            Priority: Minor
>              Labels: backport-needed
>             Fix For: 1.3.0, 1.1.2, 1.2.1
>
>
> It does not seem necessary in the {{doFetchFile}} method to first download 
> the file into a local directory then move it (it may cause a copy instead of 
> a rename).
> {{tempFile}} (where the file is downloaded) should be created in the same 
> directory than {{targetFile}}, so that the move from {{tempFile}} to 
> {{targetFile}} is always atomic



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to