You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2015/04/03 10:49:53 UTC

[jira] [Updated] (SPARK-6560) PairRDDFunctions suppresses exceptions in writeFile

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

Sean Owen updated SPARK-6560:
-----------------------------
    Assignee: Stephen Haberman

> PairRDDFunctions suppresses exceptions in writeFile
> ---------------------------------------------------
>
>                 Key: SPARK-6560
>                 URL: https://issues.apache.org/jira/browse/SPARK-6560
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 1.3.0
>            Reporter: Stephen Haberman
>            Assignee: Stephen Haberman
>            Priority: Minor
>             Fix For: 1.4.0
>
>
> In PairRDDFunctions, saveAsHadoopDataset uses a try/finally to manage SparkHadoopWriter. Briefly:
> {code}
> try {
>   ... writer.write(...)
> } finally {
>   writer.close()
> }
> {code}
> However, if an exception happens in writer.write, and then writer.close is called, and an exception in writer.close happens, the original (real) exception from writer.write is suppressed.
> This makes debugging very painful, as the exception that is shown in the logs (from writer.close) is spurious, and the original, real exception has been lost and not logged.



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

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