(VertexEventSourceTaskAttemptCompleted) vertexEvent;
vertex.pendingReportedSrcCompletions.add(
evt.getCompletionEvent().getTaskAttemptId());
} else if (vertexEvent.getType().equals(
VertexEventType.V_SOURCE_VERTEX_STARTED)) {
VertexEventSourceVertexStarted startEvent =
(VertexEventSourceVertexStarted) vertexEvent;
int distanceFromRoot = startEvent.getSourceDistanceFromRoot() + 1;
if(vertex.distanceFromRoot < distanceFromRoot) {
vertex.distanceFromRoot = distanceFromRoot;
}
++vertex.numStartedSourceVertices;
} else if (vertexEvent.getType().equals(VertexEventType.V_INIT)) {