From e41bc102bb76511cddf6e927dfad1df27e2c731c Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Fri, 13 May 2011 17:17:07 +0000 Subject: [PATCH] HBASE-3876 TestCoprocessorInterface.testCoprocessorInterface broke on jenkins and local git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1102819 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 2 ++ .../hbase/coprocessor/TestCoprocessorInterface.java | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 1cf658b026e..0fed9bad139 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -103,6 +103,8 @@ Release 0.91.0 - Unreleased HBASE-3865 Failing TestWALReplay HBASE-3864 Rename of hfile.min.blocksize.size in HBASE-2899 reverted in HBASE-1861 (Aaron T. Myers) + HBASE-3876 TestCoprocessorInterface.testCoprocessorInterface broke on + jenkins and local IMPROVEMENTS HBASE-3290 Max Compaction Size (Nicolas Spiegelberg via Stack) diff --git a/src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorInterface.java b/src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorInterface.java index 0f1c6b52d5a..f0418d19c30 100644 --- a/src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorInterface.java +++ b/src/test/java/org/apache/hadoop/hbase/coprocessor/TestCoprocessorInterface.java @@ -143,9 +143,10 @@ public class TestCoprocessorInterface extends HBaseTestCase { Configuration hc = initSplit(); HRegion region = initHRegion(tableName, getName(), hc, CoprocessorImpl.class, families); - - addContent(region, fam3); - region.flushcache(); + for (int i = 0; i < 3; i++) { + addContent(region, fam3); + region.flushcache(); + } byte [] splitRow = region.compactStores(); assertNotNull(splitRow); HRegion [] regions = split(region, splitRow); @@ -154,9 +155,8 @@ public class TestCoprocessorInterface extends HBaseTestCase { } region.close(); region.getLog().closeAndDelete(); - - Coprocessor c = region.getCoprocessorHost() - .findCoprocessor(CoprocessorImpl.class.getName()); + Coprocessor c = region.getCoprocessorHost(). + findCoprocessor(CoprocessorImpl.class.getName()); assertTrue("Coprocessor not started", ((CoprocessorImpl)c).wasStarted()); assertTrue("Coprocessor not stopped", ((CoprocessorImpl)c).wasStopped()); assertTrue(((CoprocessorImpl)c).wasOpened());