[
https://issues.apache.org/jira/browse/SPARK-21223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sean Owen reassigned SPARK-21223:
---------------------------------
Assignee: zenglinxi
Priority: Minor (was: Major)
> Thread-safety issue in FsHistoryProvider
> -----------------------------------------
>
> Key: SPARK-21223
> URL: https://issues.apache.org/jira/browse/SPARK-21223
> Project: Spark
> Issue Type: Bug
> Components: Spark Core
> Affects Versions: 2.1.1
> Reporter: zenglinxi
> Assignee: zenglinxi
> Priority: Minor
> Fix For: 2.3.0
>
> Attachments: historyserver_jstack.txt
>
>
> Currently, Spark HistoryServer use a HashMap named fileToAppInfo in class
> FsHistoryProvider to store the map of eventlog path and attemptInfo.
> When use ThreadPool to Replay the log files in the list and merge the list of
> old applications with new ones, multi thread may update fileToAppInfo at the
> same time, which may cause Thread-safety issues.
> {code:java}
> for (file <- logInfos) {
> tasks += replayExecutor.submit(new Runnable {
> override def run(): Unit = mergeApplicationListing(file)
> })
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]