You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Jian He (JIRA)" <ji...@apache.org> on 2017/05/10 06:09:11 UTC

[jira] [Comment Edited] (YARN-6533) Race condition in writing service record to registry in yarn native services

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

Jian He edited comment on YARN-6533 at 5/10/17 6:08 AM:
--------------------------------------------------------

In SliderAppMaster
Below code also didn't replace "\_" with "\-". Is it required to replace "_" with "-"  for the YARN_ID ?  what's the expectation ?
{code}
    serviceRecord.set(YarnRegistryAttributes.YARN_ID, appId.toString());
{code}


was (Author: jianhe):
In SliderAppMaster
Below code also didn't replace '_' with '-'. Is it required to replace '_' with '-' for the YARN_ID ?  what's the expectation ?
{code}
    serviceRecord.set(YarnRegistryAttributes.YARN_ID, appId.toString());
{code}

> Race condition in writing service record to registry in yarn native services
> ----------------------------------------------------------------------------
>
>                 Key: YARN-6533
>                 URL: https://issues.apache.org/jira/browse/YARN-6533
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Billie Rinaldi
>            Assignee: Billie Rinaldi
>         Attachments: YARN-6533-yarn-native-services.001.patch, YARN-6533-yarn-native-services.002.patch
>
>
> The ServiceRecord is written twice, once when the container is initially registered and again in the Docker provider once the IP has been obtained for the container. These occur asynchronously, so the more important record (the one with the IP) can be overwritten by the initial record. Only one record needs to be written, so we can stop writing the initial record when the Docker provider is being used.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org