You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Xuan Gong (JIRA)" <ji...@apache.org> on 2014/10/17 01:57:33 UTC

[jira] [Created] (YARN-2701) Potential race condition in startLocalizer when using LinuxContainerExecutor

Xuan Gong created YARN-2701:
-------------------------------

             Summary: Potential race condition in startLocalizer when using LinuxContainerExecutor  
                 Key: YARN-2701
                 URL: https://issues.apache.org/jira/browse/YARN-2701
             Project: Hadoop YARN
          Issue Type: Bug
            Reporter: Xuan Gong
            Assignee: Xuan Gong


When using LinuxContainerExecutor do startLocalizer, we are using native code container-executor.c. 
{code}
     if (stat(npath, &sb) != 0) {
       if (mkdir(npath, perm) != 0) {
{code}
We are using check and create method to create the appDir under /usercache. But if there are two containers trying to do this at the same time, race condition may happen.



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