You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Colin Patrick McCabe (JIRA)" <ji...@apache.org> on 2014/10/06 23:42:34 UTC

[jira] [Updated] (HADOOP-10404) Some accesses to DomainSocketWatcher#closed are not protected by lock

     [ https://issues.apache.org/jira/browse/HADOOP-10404?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colin Patrick McCabe updated HADOOP-10404:
------------------------------------------
          Resolution: Fixed
       Fix Version/s: 2.7.0
    Target Version/s: 2.7.0
              Status: Resolved  (was: Patch Available)

Committed to 2.7.  Thanks, [~andrew.wang]

> Some accesses to DomainSocketWatcher#closed are not protected by lock
> ---------------------------------------------------------------------
>
>                 Key: HADOOP-10404
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10404
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Colin Patrick McCabe
>            Priority: Minor
>             Fix For: 2.7.0
>
>         Attachments: HADOOP-10404.003.patch, HADOOP-10404.1.patch, HADOOP-10404.2.patch
>
>
> {code}
>    * Lock which protects toAdd, toRemove, and closed.
>    */
>   private final ReentrantLock lock = new ReentrantLock();
> {code}
> There're two places, NotificationHandler.handle() and kick(), where access to closed is without holding lock.



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