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:46:40 GMT
Repository: tez
Updated Branches:
  refs/heads/branch-0.5 1d9c8619e -> 0202726b2


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/0202726b
Tree: http://git-wip-us.apache.org/repos/asf/tez/tree/0202726b
Diff: http://git-wip-us.apache.org/repos/asf/tez/diff/0202726b

Branch: refs/heads/branch-0.5
Commit: 0202726b25384b0d022e38aa224039d57d18c759
Parents: 1d9c861
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:44:37 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/0202726b/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index e5494c1..3f42b47 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -23,6 +23,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/0202726b/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