tez-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bi...@apache.org
Subject git commit: TEZ-619. Failing test: TestTaskScheduler.testTaskSchedulerWithReuse (Jonathan Eagles via bikas)
Date Thu, 20 Feb 2014 08:07:56 GMT
Repository: incubator-tez
Updated Branches:
  refs/heads/master 972dbc6fb -> b6072a862


TEZ-619. Failing test: TestTaskScheduler.testTaskSchedulerWithReuse (Jonathan Eagles via bikas)


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

Branch: refs/heads/master
Commit: b6072a8623a90ae1bf7af0733680304e1ffc901a
Parents: 972dbc6
Author: Bikas Saha <bikas@apache.org>
Authored: Thu Feb 20 00:07:39 2014 -0800
Committer: Bikas Saha <bikas@apache.org>
Committed: Thu Feb 20 00:07:39 2014 -0800

----------------------------------------------------------------------
 .../test/java/org/apache/tez/dag/app/rm/TestTaskScheduler.java  | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tez/blob/b6072a86/tez-dag/src/test/java/org/apache/tez/dag/app/rm/TestTaskScheduler.java
----------------------------------------------------------------------
diff --git a/tez-dag/src/test/java/org/apache/tez/dag/app/rm/TestTaskScheduler.java b/tez-dag/src/test/java/org/apache/tez/dag/app/rm/TestTaskScheduler.java
index ff4036d..4d93eb1 100644
--- a/tez-dag/src/test/java/org/apache/tez/dag/app/rm/TestTaskScheduler.java
+++ b/tez-dag/src/test/java/org/apache/tez/dag/app/rm/TestTaskScheduler.java
@@ -527,7 +527,7 @@ public class TestTaskScheduler {
     final Priority mockPriority1 = Priority.newInstance(1);
     final Priority mockPriority2 = Priority.newInstance(2);
     final Priority mockPriority3 = Priority.newInstance(3);
-    final Priority mockPriority4 = Priority.newInstance(3);
+    final Priority mockPriority4 = Priority.newInstance(4);
     Object mockTask2 = mock(Object.class);
     Object mockCookie2 = mock(Object.class);
     Object mockTask3 = mock(Object.class);
@@ -558,7 +558,7 @@ public class TestTaskScheduler {
     // sending lower priority container first to make sure its not matched
     Container mockContainer4 = mock(Container.class, RETURNS_DEEP_STUBS);
     when(mockContainer4.getNodeId().getHost()).thenReturn("host4");
-    when(mockContainer4.getPriority()).thenReturn(mockPriority3);
+    when(mockContainer4.getPriority()).thenReturn(mockPriority4);
     ContainerId mockCId4 = mock(ContainerId.class);
     when(mockContainer4.getId()).thenReturn(mockCId4);
     containers.add(mockContainer4);
@@ -762,6 +762,7 @@ public class TestTaskScheduler {
     when(mockContainer5.getNodeId()).thenReturn(badNodeId);
     ContainerId mockCId5 = mock(ContainerId.class);
     when(mockContainer5.getId()).thenReturn(mockCId5);
+    when(mockContainer5.getPriority()).thenReturn(mockPriority4);
     containers.clear();
     containers.add(mockContainer5);
     when(


Mime
View raw message