tez-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zjf...@apache.org
Subject git commit: TEZ-1686. TestRecoveryParser.testGetLastCompletedDAG fails sometimes (zjffdu)
Date Tue, 21 Oct 2014 07:28:21 GMT
Repository: tez
Updated Branches:
  refs/heads/master 00c5a93f3 -> 244f12f66


TEZ-1686. TestRecoveryParser.testGetLastCompletedDAG fails sometimes (zjffdu)


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

Branch: refs/heads/master
Commit: 244f12f66e9c9f8773102c6d755bf449dfb76cf0
Parents: 00c5a93
Author: Jeff Zhang <zjffdu@apache.org>
Authored: Tue Oct 21 14:59:43 2014 +0800
Committer: Jeff Zhang <zjffdu@apache.org>
Committed: Tue Oct 21 14:59:43 2014 +0800

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


http://git-wip-us.apache.org/repos/asf/tez/blob/244f12f6/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 265463b..c951e8e 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -44,6 +44,7 @@ ALL CHANGES:
   TEZ-1683. Do ugi::getGroups only when necessary when checking ACLs.
   TEZ-1584. Restore counters from DAGFinishedEvent when DAG is completed.
   TEZ-1525. BroadcastLoadGen testcase.
+  TEZ-1686. TestRecoveryParser.testGetLastCompletedDAG fails sometimes
 
 Release 0.5.1: 2014-10-02
 

http://git-wip-us.apache.org/repos/asf/tez/blob/244f12f6/tez-dag/src/test/java/org/apache/tez/dag/app/TestRecoveryParser.java
----------------------------------------------------------------------
diff --git a/tez-dag/src/test/java/org/apache/tez/dag/app/TestRecoveryParser.java b/tez-dag/src/test/java/org/apache/tez/dag/app/TestRecoveryParser.java
index 77c76c5..0425d25 100644
--- a/tez-dag/src/test/java/org/apache/tez/dag/app/TestRecoveryParser.java
+++ b/tez-dag/src/test/java/org/apache/tez/dag/app/TestRecoveryParser.java
@@ -60,7 +60,7 @@ public class TestRecoveryParser {
   public void testGetLastCompletedDAG() {
     Map<TezDAGID, DAGSummaryData> summaryDataMap =
         new HashMap<TezDAGID, DAGSummaryData>();
-    int lastCompletedDAGId = new Random().nextInt(100);
+    int lastCompletedDAGId = new Random().nextInt(20) + 1;
     for (int i = 1; i <= lastCompletedDAGId; ++i) {
       ApplicationId appId = ApplicationId.newInstance(1, 1);
       TezDAGID dagId = TezDAGID.getInstance(appId, i);


Mime
View raw message