You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2021/03/02 11:19:00 UTC

[jira] [Commented] (SPARK-34594) OrcColumnarBatchReader uncaught exception

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

Dongjoon Hyun commented on SPARK-34594:
---------------------------------------

Thank you for reporting, [~AlberyZJG]. 
- Did you hit some error there in some situation? For example, corrupted data?
- If then, does the uncaught failure causes job failure?

> OrcColumnarBatchReader uncaught exception
> -----------------------------------------
>
>                 Key: SPARK-34594
>                 URL: https://issues.apache.org/jira/browse/SPARK-34594
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 2.4.5
>            Reporter: Zhang Jianguo
>            Priority: Major
>
> RecordReaderInterator#hasNext doesn't handle exception thrown from OrcColumnarBatchReader#nextKeyValue
> {code:java}
> // code placeholder
> override def hasNext: Boolean = {
>   if (!finished && !havePair) {
>     finished = !rowReader.nextKeyValue // Exception thrown from here
>     if (finished) {
>       // Close and release the reader here; close() will also be called when the task
>       // completes, but for tasks that read from many files, it helps to release the
>       // resources early.
>       close()
>     }
>     havePair = !finished
>   }
>   !finished
> }
> {code}
> [https://github.com/apache/spark/blob/96f51378b598501cc5dc5791f794c8586a48b355/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/RecordReaderIterator.scala#L37]
>  
> !report.PNG!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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