You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2018/01/05 20:13:03 UTC

[jira] [Commented] (SPARK-7755) MetadataCache.refresh does not take into account _SUCCESS

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

Steve Loughran commented on SPARK-7755:
---------------------------------------

I concur with [~hyukjin.kwon] here: if incomplete files are visible in the job output directory then something has gone wrong.

That said, task and job commit are not 100% atomic, and during the operations the number of observable files may increase. Waiting for the _SUCCESS marker it the safe way to guarantee that the operation has completed

> MetadataCache.refresh does not take into account _SUCCESS
> ---------------------------------------------------------
>
>                 Key: SPARK-7755
>                 URL: https://issues.apache.org/jira/browse/SPARK-7755
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 1.3.1
>            Reporter: Rowan Chattaway
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When you make a call to sqlc.parquetFile(path) where that path contains partially written files, then refresh will fail in strange ways when it attempts to read footer files.
> I would like to adjust the file discovery to take into account the presence of _SUCCESS and therefore only attempt to ready is we have the success marker.
> I have made the changes locally and it doesn't appear to have any side effects.
> What are peoples thoughts about this?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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