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 46118200BFF for ; Tue, 3 Jan 2017 06:53:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 41AAC160B45; Tue, 3 Jan 2017 05:53:00 +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 BAE4A160B30 for ; Tue, 3 Jan 2017 06:52:59 +0100 (CET) Received: (qmail 19416 invoked by uid 500); 3 Jan 2017 05:52:58 -0000 Mailing-List: contact yarn-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-dev@hadoop.apache.org Received: (qmail 19389 invoked by uid 99); 3 Jan 2017 05:52:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jan 2017 05:52:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6BC6D2C1F56 for ; Tue, 3 Jan 2017 05:52:58 +0000 (UTC) Date: Tue, 3 Jan 2017 05:52:58 +0000 (UTC) From: "David Yan (JIRA)" To: yarn-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (YARN-6048) YarnClient API call that is supposed to return containers of a previous attempt returns containers of the current application attempt MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 03 Jan 2017 05:53:00 -0000 David Yan created YARN-6048: ------------------------------- Summary: YarnClient API call that is supposed to return containers of a previous attempt returns containers of the current application attempt Key: YARN-6048 URL: https://issues.apache.org/jira/browse/YARN-6048 Project: Hadoop YARN Issue Type: Bug Components: timelineserver, yarn Affects Versions: 2.7.3 Environment: Ubuntu 16.10, Hadoop 2.7.3, Java 1.8 Reporter: David Yan I have enabled the timeline server. Sample code: {code} YarnClient yarnClient; ... List containerReports = yarnClient.getContainers(somePreviousAttemptId); {code} YarnClient.getContainers(ApplicationAttemptId) returns the containers of the *current* attempt instead of the given attempt. This is true up until the application is actually terminated. After the application is terminated, the call returns the correct container list. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-dev-help@hadoop.apache.org