MAPREDUCE-7052. TestFixedLengthInputFormat#testFormatCompressedIn is flaky. Contributed by Peter Bacsko
This commit is contained in:
parent
da59acd8ca
commit
a53d62ab26
|
@ -301,7 +301,7 @@ public class TestFixedLengthInputFormat {
|
||||||
if (i > 0) {
|
if (i > 0) {
|
||||||
if (i == (MAX_TESTS-1)) {
|
if (i == (MAX_TESTS-1)) {
|
||||||
// Test a split size that is less than record len
|
// Test a split size that is less than record len
|
||||||
numSplits = (int)(fileSize/Math.floor(recordLength/2));
|
numSplits = (int)(fileSize/ Math.max(1, Math.floor(recordLength/2)));
|
||||||
} else {
|
} else {
|
||||||
if (MAX_TESTS % i == 0) {
|
if (MAX_TESTS % i == 0) {
|
||||||
// Let us create a split size that is forced to be
|
// Let us create a split size that is forced to be
|
||||||
|
|
Loading…
Reference in New Issue