hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Billie Rinaldi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (YARN-6533) Race condition in writing service record to registry in yarn native services
Date Wed, 26 Apr 2017 16:08:04 GMT

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

Billie Rinaldi updated YARN-6533:
    Attachment: YARN-6533-yarn-native-services.001.patch

This patch does not write the initial ServiceRecord (without the IP) in the case of the Docker
provider, to prevent this initial registration from asynchronously occurring after the ServiceRecord
with the IP is written. It also logs and retries the writing of the ServiceRecord containing
the IP if an IOException is thrown, instead of just logging the exception.

> 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
> 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

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

View raw message