hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sj...@apache.org
Subject [04/50] [abbrv] hadoop git commit: HADOOP-13289. Remove unused variables in TestFairCallQueue. Contributed by Ye Zhou.
Date Sat, 16 Jul 2016 03:36:25 GMT
HADOOP-13289. Remove unused variables in TestFairCallQueue. Contributed by Ye Zhou.

(cherry picked from commit 13814832331ad691b898cd9f602b0a0a771d7928)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/2231ef22
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/2231ef22
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/2231ef22

Branch: refs/heads/YARN-5355-branch-2
Commit: 2231ef22f576d9a7d65276cf90efd0f45cb362f5
Parents: c9f5348
Author: Akira Ajisaka <aajisaka@apache.org>
Authored: Thu Jul 14 23:13:55 2016 -0700
Committer: Akira Ajisaka <aajisaka@apache.org>
Committed: Thu Jul 14 23:15:34 2016 -0700

----------------------------------------------------------------------
 .../java/org/apache/hadoop/ipc/TestFairCallQueue.java     | 10 ----------
 1 file changed, 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/2231ef22/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestFairCallQueue.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestFairCallQueue.java
b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestFairCallQueue.java
index d5e5f90..96dea80 100644
--- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestFairCallQueue.java
+++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestFairCallQueue.java
@@ -32,7 +32,6 @@ import java.util.concurrent.BlockingQueue;
 
 import org.apache.hadoop.security.UserGroupInformation;
 import org.apache.hadoop.conf.Configuration;
-import org.mockito.Matchers;
 
 public class TestFairCallQueue extends TestCase {
   private FairCallQueue<Schedulable> fcq;
@@ -52,14 +51,6 @@ public class TestFairCallQueue extends TestCase {
     return mockCall(id, 0);
   }
 
-  // A scheduler which always schedules into priority zero
-  private RpcScheduler alwaysZeroScheduler;
-  {
-    RpcScheduler sched = mock(RpcScheduler.class);
-    when(sched.getPriorityLevel(Matchers.<Schedulable>any())).thenReturn(0); // always
queue 0
-    alwaysZeroScheduler = sched;
-  }
-
   @SuppressWarnings("deprecation")
   public void setUp() {
     Configuration conf = new Configuration();
@@ -124,7 +115,6 @@ public class TestFairCallQueue extends TestCase {
 
   public void testOfferSucceedsWhenScheduledLowPriority() {
     // Scheduler will schedule into queue 0 x 5, then queue 1
-    RpcScheduler sched = mock(RpcScheduler.class);
     int mockedPriorities[] = {0, 0, 0, 0, 0, 1, 0};
     for (int i = 0; i < 5; i++) { assertTrue(fcq.offer(mockCall("c", mockedPriorities[i])));
}
 


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message