hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhihai xu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-2701) Potential race condition in startLocalizer when using LinuxContainerExecutor
Date Fri, 24 Oct 2014 22:32:34 GMT

    [ https://issues.apache.org/jira/browse/YARN-2701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14183656#comment-14183656

zhihai xu commented on YARN-2701:

I think the warning is because we should add definition of the function prototype at the front
of the file or in a header file:
int check_dir(char* npath, mode_t st_mode, mode_t desired, int finalComponent);
int create_validate_dir(char* npath, mode_t perm, char* path, int finalComponent);

So when these functions are called, the function prototype can be found.

> 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
>            Priority: Blocker
>             Fix For: 2.6.0
>         Attachments: YARN-2701.1.patch, YARN-2701.2.patch, YARN-2701.3.patch, YARN-2701.4.patch,
YARN-2701.5.patch, YARN-2701.6.patch, YARN-2701.addendum.1.patch, YARN-2701.addendum.2.patch,
> 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

View raw message