From a2ce4d050372efe89af645a98124512e6018205b Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Fri, 23 Sep 2016 10:00:32 +0100 Subject: [PATCH] HADOOP-13643. Math error in AbstractContractDistCpTest. Contributed by Aaron Fabbri. --- .../hadoop/tools/contract/AbstractContractDistCpTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-tools/hadoop-distcp/src/test/java/org/apache/hadoop/tools/contract/AbstractContractDistCpTest.java b/hadoop-tools/hadoop-distcp/src/test/java/org/apache/hadoop/tools/contract/AbstractContractDistCpTest.java index 7aeab551ccb..1776aa69f8b 100644 --- a/hadoop-tools/hadoop-distcp/src/test/java/org/apache/hadoop/tools/contract/AbstractContractDistCpTest.java +++ b/hadoop-tools/hadoop-distcp/src/test/java/org/apache/hadoop/tools/contract/AbstractContractDistCpTest.java @@ -163,7 +163,7 @@ public abstract class AbstractContractDistCpTest Path inputFile3 = new Path(inputDir, "file3"); mkdirs(srcFS, inputDir); int fileSizeKb = conf.getInt("scale.test.distcp.file.size.kb", 10 * 1024); - int fileSizeMb = fileSizeKb * 1024; + int fileSizeMb = fileSizeKb / 1024; getLog().info("{} with file size {}", testName.getMethodName(), fileSizeMb); byte[] data1 = dataset((fileSizeMb + 1) * 1024 * 1024, 33, 43); createFile(srcFS, inputFile1, true, data1);