hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: HBASE-19383 [1.2] java.lang.AssertionError: expected:<2> but was:<1> at org.apache.hadoop.hbase.TestChoreService.testTriggerNowFailsWhenNotScheduled(TestChoreService.java:707)
Date Thu, 30 Nov 2017 04:45:41 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 cf34adaf5 -> fb3fee341


HBASE-19383 [1.2] java.lang.AssertionError: expected:<2> but was:<1> at
org.apache.hadoop.hbase.TestChoreService.testTriggerNowFailsWhenNotScheduled(TestChoreService.java:707)


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

Branch: refs/heads/branch-1
Commit: fb3fee341455ce24fe276aafe3dea58f2a834037
Parents: cf34ada
Author: Michael Stack <stack@apache.org>
Authored: Wed Nov 29 20:43:54 2017 -0800
Committer: Michael Stack <stack@apache.org>
Committed: Wed Nov 29 20:45:31 2017 -0800

----------------------------------------------------------------------
 .../apache/hadoop/hbase/TestChoreService.java   | 29 --------------------
 1 file changed, 29 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/fb3fee34/hbase-common/src/test/java/org/apache/hadoop/hbase/TestChoreService.java
----------------------------------------------------------------------
diff --git a/hbase-common/src/test/java/org/apache/hadoop/hbase/TestChoreService.java b/hbase-common/src/test/java/org/apache/hadoop/hbase/TestChoreService.java
index abca0d7..aea689f 100644
--- a/hbase-common/src/test/java/org/apache/hadoop/hbase/TestChoreService.java
+++ b/hbase-common/src/test/java/org/apache/hadoop/hbase/TestChoreService.java
@@ -689,35 +689,6 @@ public class TestChoreService {
   }
 
   @Test (timeout=20000)
-  public void testTriggerNowFailsWhenNotScheduled() throws InterruptedException {
-    final int period = 100;
-    // Small sleep time buffer to allow CountingChore to complete
-    final int sleep = 5;
-    ChoreService service = new ChoreService("testTriggerNowFailsWhenNotScheduled");
-    CountingChore chore = new CountingChore("dn", period);
-
-    try {
-      assertFalse(chore.triggerNow());
-      assertTrue(chore.getCountOfChoreCalls() == 0);
-
-      service.scheduleChore(chore);
-      Thread.sleep(sleep);
-      assertEquals(1, chore.getCountOfChoreCalls());
-      Thread.sleep(period);
-      assertEquals(2, chore.getCountOfChoreCalls());
-      assertTrue(chore.triggerNow());
-      Thread.sleep(sleep);
-      assertTrue(chore.triggerNow());
-      Thread.sleep(sleep);
-      assertTrue(chore.triggerNow());
-      Thread.sleep(sleep);
-      assertEquals(5, chore.getCountOfChoreCalls());
-    } finally {
-      shutdownService(service);
-    }
-  }
-
-  @Test (timeout=20000)
   public void testStopperForScheduledChores() throws InterruptedException {
     ChoreService service = new ChoreService("testStopperForScheduledChores");
     Stoppable stopperForGroup1 = new SampleStopper();


Mime
View raw message