Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3924E11770 for ; Sun, 22 Jun 2014 12:55:26 +0000 (UTC) Received: (qmail 81361 invoked by uid 500); 22 Jun 2014 12:55:25 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 81276 invoked by uid 500); 22 Jun 2014 12:55:25 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 81115 invoked by uid 99); 22 Jun 2014 12:55:25 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jun 2014 12:55:25 +0000 Date: Sun, 22 Jun 2014 12:55:25 +0000 (UTC) From: "Wangda Tan (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (YARN-2191) Add a test to make sure NM will do application cleanup even if RM restarting happens before application completed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-2191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wangda Tan updated YARN-2191: ----------------------------- Attachment: YARN-2191.patch Attached a patch. > Add a test to make sure NM will do application cleanup even if RM restarting happens before application completed > ----------------------------------------------------------------------------------------------------------------- > > Key: YARN-2191 > URL: https://issues.apache.org/jira/browse/YARN-2191 > Project: Hadoop YARN > Issue Type: Bug > Components: resourcemanager > Affects Versions: 2.4.0 > Reporter: Wangda Tan > Assignee: Wangda Tan > Attachments: YARN-2191.patch > > > In YARN-1885, there's a test in TestApplicationCleanup#testAppCleanupWhenRestartedAfterAppFinished. But this is not enough, we need one more test to make sure NM will do app cleanup when restart happens before app finished. The sequence is, > 1. Submit app1 to RM1 > 2. NM1 launches app1's AM (container-0), NM2 launches app1's task containers. > 3. Restart RM1 > 4. Before RM1 finishes restarting, container-0 completed in NM1 > 5. RM1 finishes restarting, NM1 report container-0 completed, app1 will be completed > 6. RM1 should be able to notify NM1/NM2 to cleanup app1. -- This message was sent by Atlassian JIRA (v6.2#6252)