[
https://issues.apache.org/jira/browse/SPARK-6560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sean Owen resolved SPARK-6560.
------------------------------
Resolution: Fixed
Fix Version/s: 1.4.0
Issue resolved by pull request 5223
[https://github.com/apache/spark/pull/5223]
> 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
> 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: [email protected]
For additional commands, e-mail: [email protected]