use of org.apache.tez.runtime.library.common.CompositeInputAttemptIdentifier in project tez by apache.
the class TestShuffleInputEventHandlerOrderedGrouped method basicTest.
@Test(timeout = 5000)
public void basicTest() throws IOException {
List<Event> events = new LinkedList<Event>();
int srcIdx = 0;
int targetIdx = 1;
Event dme = createDataMovementEvent(srcIdx, targetIdx, null, false);
events.add(dme);
handler.handleEvents(events);
CompositeInputAttemptIdentifier expectedIdentifier = new CompositeInputAttemptIdentifier(targetIdx, 0, PATH_COMPONENT, 1);
int partitionId = srcIdx;
verify(scheduler).addKnownMapOutput(eq(HOST), eq(PORT), eq(partitionId), eq(expectedIdentifier));
assertTrue("Shuffle info events should be empty for regular shuffle codepath", scheduler.pipelinedShuffleInfoEventsMap.isEmpty());
}
Aggregations