hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-2721) Race condition: ZKRMStateStore retry logic may throw NodeExist exception
Date Wed, 22 Oct 2014 11:50:41 GMT

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

Hudson commented on YARN-2721:

SUCCESS: Integrated in Hadoop-Yarn-trunk #720 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk/720/])
YARN-2721. Suppress NodeExist exception thrown by ZKRMStateStore when it retries creating
znode. Contributed by Jian He. (zjshen: rev 7e3b5e6f5cb4945b4fab27e8a83d04280df50e17)
* hadoop-yarn-project/CHANGES.txt
* hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/recovery/ZKRMStateStore.java

> Race condition: ZKRMStateStore retry logic may throw NodeExist exception 
> -------------------------------------------------------------------------
>                 Key: YARN-2721
>                 URL: https://issues.apache.org/jira/browse/YARN-2721
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Jian He
>            Assignee: Jian He
>             Fix For: 2.6.0
>         Attachments: YARN-2721.1.patch
> Blindly retrying operations in zookeeper will not work for non-idempotent operations
(like create znode). The reason is that the client can do a create znode, but the response
may not be returned because the server can die or timeout. In case of retrying the create
znode, it will throw a NODE_EXISTS exception from the earlier create from the same session.

This message was sent by Atlassian JIRA

View raw message