hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-11499) Check of executorThreadsStarted in ValueQueue#submitRefillTask() evades lock acquisition
Date Tue, 27 Jan 2015 14:31:38 GMT

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

Hudson commented on HADOOP-11499:
---------------------------------

SUCCESS: Integrated in Hadoop-Hdfs-trunk #2018 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/2018/])
HADOOP-11499. Check of executorThreadsStarted in ValueQueue#submitRefillTask() evades lock
acquisition. Contributed by Ted Yu (jlowe: rev 7574df1bba33919348d3009f2578d6a81b5818e6)
* hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/key/kms/ValueQueue.java
* hadoop-common-project/hadoop-common/CHANGES.txt


> Check of executorThreadsStarted in ValueQueue#submitRefillTask() evades lock acquisition
> ----------------------------------------------------------------------------------------
>
>                 Key: HADOOP-11499
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11499
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>            Priority: Minor
>             Fix For: 2.7.0
>
>         Attachments: hadoop-11499-001.patch
>
>
> {code}
>     if (!executorThreadsStarted) {
>       synchronized (this) {
>         // To ensure all requests are first queued, make coreThreads =
>         // maxThreads
>         // and pre-start all the Core Threads.
>         executor.prestartAllCoreThreads();
>         executorThreadsStarted = true;
>       }
>     }
> {code}
> It is possible that two threads executing the above code both see executorThreadsStarted
as being false, leading to executor.prestartAllCoreThreads() called twice.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message