Skip to content

Commit

Permalink
[hotfix][runtime] Throw exception from TestingSchedulingPipelinedRegi…
Browse files Browse the repository at this point in the history
…on#getVertex() for unknown vertices
  • Loading branch information
GJL committed Apr 24, 2020
1 parent 8514200 commit fd13c2c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ public Iterable<TestingSchedulingExecutionVertex> getVertices() {

@Override
public TestingSchedulingExecutionVertex getVertex(ExecutionVertexID vertexId) {
return regionVertices.get(vertexId);
final TestingSchedulingExecutionVertex executionVertex = regionVertices.get(vertexId);
if (executionVertex == null) {
throw new IllegalArgumentException(String.format("Execution vertex %s not found in pipelined region", vertexId));
}
return executionVertex;
}

@Override
Expand Down

0 comments on commit fd13c2c

Please sign in to comment.