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

Apache Spark commented on SPARK-32574:
--------------------------------------

User 'yanxiaole' has created a pull request for this issue:
https://github.com/apache/spark/pull/29392

> Race condition in FsHistoryProvider listing iteration
> -----------------------------------------------------
>
>                 Key: SPARK-32574
>                 URL: https://issues.apache.org/jira/browse/SPARK-32574
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 3.0.0
>            Reporter: Yan Xiaole
>            Priority: Major
>
> It seems to be a race condition in FSHistoryProvider that iterate the listing 
> with high concurrency:
> {code:java}
> val stale = listing.view(classOf[LogInfo])
>  .index("lastProcessed")
>  .last(newLastScanTime - 1)
>  .asScala
>  .toList{code}
> `toList` will iterate items in the listing, if one of listing entries was 
> deleted by some clean thread, checkForLogs will throw out a 
> `java.util.NoSuchElementException` and abort current execution.



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

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

Reply via email to