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 C40FC200B88 for ; Wed, 7 Sep 2016 18:32:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C2A31160AC1; Wed, 7 Sep 2016 16:32:22 +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 1207E160ABF for ; Wed, 7 Sep 2016 18:32:21 +0200 (CEST) Received: (qmail 38626 invoked by uid 500); 7 Sep 2016 16:32:20 -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 38459 invoked by uid 99); 7 Sep 2016 16:32:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2016 16:32:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9545F2C1B7B for ; Wed, 7 Sep 2016 16:32:20 +0000 (UTC) Date: Wed, 7 Sep 2016 16:32:20 +0000 (UTC) From: "Eric Badger (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (YARN-5622) TestYarnCLI.testGetContainers fails due to mismatched date formats MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 07 Sep 2016 16:32:22 -0000 Eric Badger created YARN-5622: --------------------------------- Summary: TestYarnCLI.testGetContainers fails due to mismatched date formats Key: YARN-5622 URL: https://issues.apache.org/jira/browse/YARN-5622 Project: Hadoop YARN Issue Type: Bug Reporter: Eric Badger Assignee: Eric Badger ApplicationCLI.listContainers uses Times.format to print timestamps, while TestYarnCLI.testGetContainers formats them using dateFormat.format with its own defined format. The test should be consistent and use Times.format. {noformat} org.junit.ComparisonFailure: expected:<...1234_0005_01_000001 [Thu Jan 01 00:00:01 +0000 1970 Thu Jan 01 00:00:05 +0000 1970 COMPLETE host:1234 http://host:2345 logURL container_1234_0005_01_000002 Thu Jan 01 00:00:01 +0000 1970 Thu Jan 01 00:00:05 +0000 1970 COMPLETE host:1234 http://host:2345 logURL container_1234_0005_01_000003 Thu Jan 01 00:00:01 +0000 1970] N/...> but was:<...1234_0005_01_000001 [ 1-Jan-1970 00:00:01 1-Jan-1970 00:00:05 COMPLETE host:1234 http://host:2345 logURL container_1234_0005_01_000002 1-Jan-1970 00:00:01 1-Jan-1970 00:00:05 COMPLETE host:1234 http://host:2345 logURL container_1234_0005_01_000003 1-Jan-1970 00:00:01] N/...> at org.junit.Assert.assertEquals(Assert.java:115) at org.junit.Assert.assertEquals(Assert.java:144) at org.apache.hadoop.yarn.client.cli.TestYarnCLI.testGetContainers(TestYarnCLI.java:330) {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org