From 603eff7e8bc415d814a5da0e7439b29d0047b0e8 Mon Sep 17 00:00:00 2001 From: Thomas Graves Date: Tue, 26 Mar 2013 16:27:25 +0000 Subject: [PATCH] HADOOP-9405. TestGridmixSummary#testExecutionSummarizer is broken. (Andrew Wang via atm) git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1461205 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../apache/hadoop/mapred/gridmix/TestGridmixSummary.java | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 098359d069b..4ab0c138e8d 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -85,6 +85,9 @@ Release 2.0.5-beta - UNRELEASED HADOOP-9407. commons-daemon 1.0.3 dependency has bad group id causing build issues. (Sangjin Lee via suresh) + HADOOP-9405. TestGridmixSummary#testExecutionSummarizer is broken. (Andrew + Wang via atm) + Release 2.0.4-alpha - UNRELEASED INCOMPATIBLE CHANGES diff --git a/hadoop-tools/hadoop-gridmix/src/test/java/org/apache/hadoop/mapred/gridmix/TestGridmixSummary.java b/hadoop-tools/hadoop-gridmix/src/test/java/org/apache/hadoop/mapred/gridmix/TestGridmixSummary.java index 64af603bec5..ae8caff7c42 100644 --- a/hadoop-tools/hadoop-gridmix/src/test/java/org/apache/hadoop/mapred/gridmix/TestGridmixSummary.java +++ b/hadoop-tools/hadoop-gridmix/src/test/java/org/apache/hadoop/mapred/gridmix/TestGridmixSummary.java @@ -247,7 +247,7 @@ public class TestGridmixSummary { qPath.toString(), es.getInputTraceLocation()); // test expected data size assertEquals("Mismatch in expected data size", - "1.0k", es.getExpectedDataSize()); + "1 K", es.getExpectedDataSize()); // test input data statistics assertEquals("Mismatch in input data statistics", ExecutionSummarizer.stringifyDataStatistics(dataStats), @@ -262,7 +262,7 @@ public class TestGridmixSummary { es.finalize(factory, testTraceFile.toString(), 1024*1024*1024*10L, resolver, dataStats, conf); assertEquals("Mismatch in expected data size", - "10.0g", es.getExpectedDataSize()); + "10 G", es.getExpectedDataSize()); // test trace signature uniqueness // touch the trace file @@ -374,4 +374,4 @@ public class TestGridmixSummary { assertEquals("Cluster summary test failed!", 0, cs.getNumBlacklistedTrackers()); } -} \ No newline at end of file +}