assertEquals(SHUFFLE_PORT, eventProto.getPort());
assertEquals(uniqueId, eventProto.getPathComponent());
// Verify the data
// Verify the actual data
TezTaskOutput taskOutput = new TezTaskOutputFiles(conf, uniqueId);
Path outputFilePath = null;
Path spillFilePath = null;
try {
outputFilePath = taskOutput.getOutputFile();
} catch (DiskErrorException e) {
if (numRecordsWritten > 0) {
fail();
} else {
// Record checking not required.
return;
}
}
try {
spillFilePath = taskOutput.getOutputIndexFile();
} catch (DiskErrorException e) {
if (numRecordsWritten > 0) {
fail();
} else {
// Record checking not required.