You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2020/08/08 12:42:00 UTC
[jira] [Commented] (SPARK-32574) Race condition in
FsHistoryProvider listing iteration
[ https://issues.apache.org/jira/browse/SPARK-32574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17173646#comment-17173646 ]
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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org