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 88DD2200D4B for ; Mon, 27 Nov 2017 09:12:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 875E5160C02; Mon, 27 Nov 2017 08:12:05 +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 CD861160C13 for ; Mon, 27 Nov 2017 09:12:04 +0100 (CET) Received: (qmail 64112 invoked by uid 500); 27 Nov 2017 08:12:04 -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 64101 invoked by uid 99); 27 Nov 2017 08:12:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Nov 2017 08:12:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 30BE9C0261 for ; Mon, 27 Nov 2017 08:12:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.011 X-Spam-Level: X-Spam-Status: No, score=-99.011 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KB_WAM_FROM_NAME_SINGLEWORD=0.2, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id HHpDj7GyPNQ8 for ; Mon, 27 Nov 2017 08:12:02 +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 62E465F286 for ; Mon, 27 Nov 2017 08:12:01 +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 86BA0E0A29 for ; Mon, 27 Nov 2017 08:12:00 +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 23BEF241A3 for ; Mon, 27 Nov 2017 08:12:00 +0000 (UTC) Date: Mon, 27 Nov 2017 08:12:00 +0000 (UTC) From: "lujie (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (YARN-6948) Invalid event: ATTEMPT_ADDED at FINAL_SAVING MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 27 Nov 2017 08:12:05 -0000 [ https://issues.apache.org/jira/browse/YARN-6948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16266480#comment-16266480 ] lujie edited comment on YARN-6948 at 11/27/17 8:11 AM: ------------------------------------------------------- Hi: Recently I restudy this bug, and find the bug reason !yarn-6948.png! When the applicationAttempt performs AttemptstartedTransition, it will send AppAttemptAddedSchedulerEvent to CapacityScheduler and transform to SUBMITTED, then the CapacityScheduler will send ATTEMPT_ADDED back to applicationAttempt, But if client send kill command to applicationAttempt, applicationAttempt will transform to FINAL_SAVING , and if ATTEMPT_ADDED arrives before applicationAttempt chang its state from FINAL_SAVING to KILLED, applicationAttempt will throw InvalidStateTransitonException exception. it will be ok if ATTEMPT_ADDED arrives at KILLED(ignore the event) or SUBMITTED was (Author: xiaoheipangzi): Hi: Recently I restudy this bug, and find the bug reason !yarn-6948.png! When the applicationAttempt performs AttemptstartedTransition, it will send AppAttemptAddedSchedulerEvent to CapacityScheduler and transform to SUBMITTED, then the CapacityScheduler will send ATTEMPT_ADDED back to applicationAttempt, But if client send kill command to applicationAttempt, applicationAttempt will transform to FINAL_SAVING , and if ATTEMPT_ADDED arrives before applicationAttempt chang its state from FINAL_SAVING to KILLED, applicationAttempt will throw InvalidStateTransitonException exception. it will be ok if ATTEMPT_ADDED arrives at KILLED or SUBMITTED > Invalid event: ATTEMPT_ADDED at FINAL_SAVING > -------------------------------------------- > > Key: YARN-6948 > URL: https://issues.apache.org/jira/browse/YARN-6948 > Project: Hadoop YARN > Issue Type: Bug > Components: yarn > Affects Versions: 2.8.0 > Reporter: lujie > Attachments: yarn-6948.png > > > When I send kill command to a running job, I check the logs and find the Exception: > {code:java} > 2017-08-03 01:35:20,485 ERROR org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptImpl: Can't handle this event at current state > org.apache.hadoop.yarn.state.InvalidStateTransitonException: Invalid event: ATTEMPT_ADDED at FINAL_SAVING > at org.apache.hadoop.yarn.state.StateMachineFactory.doTransition(StateMachineFactory.java:305) > at org.apache.hadoop.yarn.state.StateMachineFactory.access$300(StateMachineFactory.java:46) > at org.apache.hadoop.yarn.state.StateMachineFactory$InternalStateMachine.doTransition(StateMachineFactory.java:448) > at org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptImpl.handle(RMAppAttemptImpl.java:757) > at org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptImpl.handle(RMAppAttemptImpl.java:106) > at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$ApplicationAttemptEventDispatcher.handle(ResourceManager.java:834) > at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$ApplicationAttemptEventDispatcher.handle(ResourceManager.java:815) > at org.apache.hadoop.yarn.event.AsyncDispatcher.dispatch(AsyncDispatcher.java:173) > at org.apache.hadoop.yarn.event.AsyncDispatcher$1.run(AsyncDispatcher.java:106) > at java.lang.Thread.run(Thread.java:745) > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org