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 20FC3174E4 for ; Tue, 24 Mar 2015 13:47:02 +0000 (UTC) Received: (qmail 15706 invoked by uid 500); 24 Mar 2015 13:45:58 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 15669 invoked by uid 500); 24 Mar 2015 13:45:58 -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 15657 invoked by uid 99); 24 Mar 2015 13:45:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Mar 2015 13:45:58 +0000 Date: Tue, 24 Mar 2015 13:45:58 +0000 (UTC) From: "Hudson (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-3393) Getting application(s) goes wrong when app finishes before starting the attempt 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-3393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14377868#comment-14377868 ] Hudson commented on YARN-3393: ------------------------------ FAILURE: Integrated in Hadoop-Mapreduce-trunk #2092 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2092/]) YARN-3393. Getting application(s) goes wrong when app finishes before (xgong: rev 9fae455e26e0230107e1c6db58a49a5b6b296cf4) * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice/src/test/java/org/apache/hadoop/yarn/server/applicationhistoryservice/TestApplicationHistoryManagerOnTimelineStore.java * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/ApplicationHistoryManagerOnTimelineStore.java * hadoop-yarn-project/CHANGES.txt > Getting application(s) goes wrong when app finishes before starting the attempt > ------------------------------------------------------------------------------- > > Key: YARN-3393 > URL: https://issues.apache.org/jira/browse/YARN-3393 > Project: Hadoop YARN > Issue Type: Bug > Components: timelineserver > Reporter: Zhijie Shen > Assignee: Zhijie Shen > Priority: Critical > Fix For: 2.7.0 > > Attachments: YARN-3393.1.patch > > > When generating app report in ApplicationHistoryManagerOnTimelineStore, it checks if appAttempt == null. > {code} > ApplicationAttemptReport appAttempt = getApplicationAttempt(app.appReport.getCurrentApplicationAttemptId()); > if (appAttempt != null) { > app.appReport.setHost(appAttempt.getHost()); > app.appReport.setRpcPort(appAttempt.getRpcPort()); > app.appReport.setTrackingUrl(appAttempt.getTrackingUrl()); > app.appReport.setOriginalTrackingUrl(appAttempt.getOriginalTrackingUrl()); > } > {code} > However, {{getApplicationAttempt}} doesn't return null but throws ApplicationAttemptNotFoundException: > {code} > if (entity == null) { > throw new ApplicationAttemptNotFoundException( > "The entity for application attempt " + appAttemptId + > " doesn't exist in the timeline store"); > } else { > return convertToApplicationAttemptReport(entity); > } > {code} > They code isn't coupled well. -- This message was sent by Atlassian JIRA (v6.3.4#6332)