tez-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bi...@apache.org
Subject git commit: TEZ-1632. NPE at TestPreemption.testPreemptionWithoutSession (Alexander Pivovarov via bikas)
Date Thu, 16 Oct 2014 22:42:21 GMT
Repository: tez
Updated Branches:
  refs/heads/master 71231c892 -> 1fc98d333


TEZ-1632. NPE at TestPreemption.testPreemptionWithoutSession (Alexander Pivovarov via bikas)


Project: http://git-wip-us.apache.org/repos/asf/tez/repo
Commit: http://git-wip-us.apache.org/repos/asf/tez/commit/1fc98d33
Tree: http://git-wip-us.apache.org/repos/asf/tez/tree/1fc98d33
Diff: http://git-wip-us.apache.org/repos/asf/tez/diff/1fc98d33

Branch: refs/heads/master
Commit: 1fc98d3335c09169e258851e4fff014819c00c31
Parents: 71231c8
Author: Bikas Saha <bikas@apache.org>
Authored: Thu Oct 16 15:42:20 2014 -0700
Committer: Bikas Saha <bikas@apache.org>
Committed: Thu Oct 16 15:42:20 2014 -0700

----------------------------------------------------------------------
 CHANGES.txt                                                    | 1 +
 .../src/test/java/org/apache/tez/dag/app/TestPreemption.java   | 6 +++++-
 2 files changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tez/blob/1fc98d33/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index e533c3b..9ffc776 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -30,6 +30,7 @@ ALL CHANGES:
   TEZ-1479. Disambiguate (refactor) between ShuffleInputEventHandlers and Fetchers.
   TEZ-1665. DAGScheduler should provide a priority range instead of an exact
   priority
+  TEZ-1632. NPE at TestPreemption.testPreemptionWithoutSession
 
 Release 0.5.1: 2014-10-02
 

http://git-wip-us.apache.org/repos/asf/tez/blob/1fc98d33/tez-dag/src/test/java/org/apache/tez/dag/app/TestPreemption.java
----------------------------------------------------------------------
diff --git a/tez-dag/src/test/java/org/apache/tez/dag/app/TestPreemption.java b/tez-dag/src/test/java/org/apache/tez/dag/app/TestPreemption.java
index cfb1c9f..0958c48 100644
--- a/tez-dag/src/test/java/org/apache/tez/dag/app/TestPreemption.java
+++ b/tez-dag/src/test/java/org/apache/tez/dag/app/TestPreemption.java
@@ -99,7 +99,11 @@ public class TestPreemption {
     // now the MockApp has been started. sync with it to get the launcher
     syncWithMockAppLauncher(false, mockAppLauncherGoFlag, tezClient);
 
-    DAGImpl dagImpl = (DAGImpl) mockApp.getContext().getCurrentDAG();
+    DAGImpl dagImpl;
+    do {
+      Thread.sleep(100); // usually needs to sleep 2-3 times
+    } while ((dagImpl = (DAGImpl) mockApp.getContext().getCurrentDAG()) == null);
+
     int vertexIndex = 0;
     int upToTaskVersion = 3;
     TezVertexID vertexId = TezVertexID.getInstance(dagImpl.getID(), vertexIndex);


Mime
View raw message