HADOOP-13643. Math error in AbstractContractDistCpTest. Contributed by Aaron Fabbri.

This commit is contained in:
Steve Loughran 2016-09-23 10:00:32 +01:00
parent b58651d8d4
commit 247cdbb86a
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ public abstract class AbstractContractDistCpTest
Path inputFile3 = new Path(inputDir, "file3"); Path inputFile3 = new Path(inputDir, "file3");
mkdirs(srcFS, inputDir); mkdirs(srcFS, inputDir);
int fileSizeKb = conf.getInt("scale.test.distcp.file.size.kb", 10 * 1024); 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); getLog().info("{} with file size {}", testName.getMethodName(), fileSizeMb);
byte[] data1 = dataset((fileSizeMb + 1) * 1024 * 1024, 33, 43); byte[] data1 = dataset((fileSizeMb + 1) * 1024 * 1024, 33, 43);
createFile(srcFS, inputFile1, true, data1); createFile(srcFS, inputFile1, true, data1);