Description
The random keys chosen have a probability that they will fall into the same partition and therefore will invalidate the test assumption of how many empty partitions there are.
Example of failure stack trace
Failed org.apache.tez.runtime.library.common.sort.impl.dflt.TestDefaultSorter.testEmptyCaseFileLengths Failing for the past 1 build (Since Failed#671 ) Took 67 ms. (no description) Error Message Number of empty partitions did not match! Stacktrace java.lang.AssertionError: Number of empty partitions did not match! at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.assertTrue(Assert.java:41) at org.apache.tez.runtime.library.common.sort.impl.dflt.TestDefaultSorter.testEmptyCaseFileLengthsHelper(TestDefaultSorter.java:321) at org.apache.tez.runtime.library.common.sort.impl.dflt.TestDefaultSorter.testEmptyCaseFileLengths(TestDefaultSorter.java:288)