Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 95BC6200C3A for ; Fri, 31 Mar 2017 10:47:50 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 94388160B8C; Fri, 31 Mar 2017 08:47:50 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D78C9160B80 for ; Fri, 31 Mar 2017 10:47:49 +0200 (CEST) Received: (qmail 85138 invoked by uid 500); 31 Mar 2017 08:47:48 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 85126 invoked by uid 99); 31 Mar 2017 08:47:48 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Mar 2017 08:47:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 844421A578B for ; Fri, 31 Mar 2017 08:47:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id brZhFxy7dWPB for ; Fri, 31 Mar 2017 08:47:47 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id A64155FBEB for ; Fri, 31 Mar 2017 08:47:46 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id DF265E05BF for ; Fri, 31 Mar 2017 08:47:45 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 67B2E21DD6 for ; Fri, 31 Mar 2017 08:47:45 +0000 (UTC) Date: Fri, 31 Mar 2017 08:47:45 +0000 (UTC) From: "Varun Saxena (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-6420) RM startup failure due to wrong order of editlog MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 31 Mar 2017 08:47:50 -0000 [ https://issues.apache.org/jira/browse/YARN-6420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15950547#comment-15950547 ] Varun Saxena commented on YARN-6420: ------------------------------------ So this can only happen if replace labels on node and adding of label is done parallely from 2 clients. And the dispatcher order is reversed due to a potential race. Right? > RM startup failure due to wrong order of editlog > ------------------------------------------------ > > Key: YARN-6420 > URL: https://issues.apache.org/jira/browse/YARN-6420 > Project: Hadoop YARN > Issue Type: Bug > Reporter: Bibin A Chundatt > Assignee: Bibin A Chundatt > Priority: Critical > > Edit log file for nodelabel written in wrong order if {{StoreNewClusterNodeLabels}} addition is delayed and {{UpdateNodeToLabelsMappingsEvent}} is added to dispatcher. > Configure RM admin client thread count to 2 > Add node label to cluster X - Client 1 > Delay event addition to dispatcher > Replace node label on node1 to X - Client 2 > Make sure {{UpdateNodeToLabelsMappingsEvent}} added to dispatcher first. > Restart resource manager > {noformat} > 2017-03-31 16:20:42,236 | WARN | main-EventThread | Exception handling the winning of election | ActiveStandbyElector.java:836 > org.apache.hadoop.ha.ServiceFailedException: RM could not transition to Active > at org.apache.hadoop.yarn.server.resourcemanager.EmbeddedElectorService.becomeActive(EmbeddedElectorService.java:128) > at org.apache.hadoop.ha.ActiveStandbyElector.becomeActive(ActiveStandbyElector.java:832) > at org.apache.hadoop.ha.ActiveStandbyElector.processResult(ActiveStandbyElector.java:422) > at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:728) > at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:600) > Caused by: org.apache.hadoop.ha.ServiceFailedException: Error when transitioning to Active mode > at org.apache.hadoop.yarn.server.resourcemanager.AdminService.transitionToActive(AdminService.java:331) > at org.apache.hadoop.yarn.server.resourcemanager.EmbeddedElectorService.becomeActive(EmbeddedElectorService.java:126) > ... 4 more > Caused by: org.apache.hadoop.service.ServiceStateException: java.io.IOException: Not all labels being replaced contained by known label collections, please check, new labels=[1] > at org.apache.hadoop.service.ServiceStateException.convert(ServiceStateException.java:59) > at org.apache.hadoop.service.AbstractService.start(AbstractService.java:204) > at org.apache.hadoop.service.CompositeService.serviceStart(CompositeService.java:120) > at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$RMActiveServices.serviceStart(ResourceManager.java:642) > at org.apache.hadoop.service.AbstractService.start(AbstractService.java:193) > at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.startActiveServices(ResourceManager.java:1042) > at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$1.run(ResourceManager.java:1083) > at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$1.run(ResourceManager.java:1079) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:422) > {noformat} -- 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