Skip to content

Commit

Permalink
TEZ-4036. TestMockDAGAppMaster#testInternalPreemption should assert f…
Browse files Browse the repository at this point in the history
…or failed state (Kuhu Shukla via jeagles)
  • Loading branch information
jteagles committed Feb 5, 2019
1 parent c78d348 commit 3162aab
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ public void testInternalPreemption() throws Exception {
TezVertexID vertexId = TezVertexID.getInstance(dagImpl.getID(), 0);
TezTaskAttemptID killedTaId = TezTaskAttemptID.getInstance(TezTaskID.getInstance(vertexId, 0), 0);
TaskAttempt killedTa = dagImpl.getVertex(vA.getName()).getTask(0).getAttempt(killedTaId);
Assert.assertEquals(TaskAttemptState.KILLED, killedTa.getState());
//Refer to TEZ-3950
Assert.assertTrue(killedTa.getState().equals(TaskAttemptState.KILLED) || killedTa.getState().equals(TaskAttemptState.FAILED));
tezClient.stop();
}

Expand Down

0 comments on commit 3162aab

Please sign in to comment.