From ed8ba5dff378f6ebd3edca10994ca63976af541b Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Tue, 18 Aug 2009 00:21:10 +0000 Subject: [PATCH] HBASE-1773 Fix broken tests (setWriteBuffer now throws IOE) git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@805236 13f79535-47bb-0310-9956-ffa450edef68 --- src/test/org/apache/hadoop/hbase/client/TestBatchUpdate.java | 2 +- src/test/org/apache/hadoop/hbase/client/TestPut.java | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/test/org/apache/hadoop/hbase/client/TestBatchUpdate.java b/src/test/org/apache/hadoop/hbase/client/TestBatchUpdate.java index 724201f3cdc..48277a36115 100644 --- a/src/test/org/apache/hadoop/hbase/client/TestBatchUpdate.java +++ b/src/test/org/apache/hadoop/hbase/client/TestBatchUpdate.java @@ -104,7 +104,7 @@ public class TestBatchUpdate extends HBaseClusterTestCase { } } - public void testRowsBatchUpdateBufferedManyManyFlushes() { + public void testRowsBatchUpdateBufferedManyManyFlushes() throws IOException { table.setAutoFlush(false); table.setWriteBufferSize(10); ArrayList rowsUpdate = new ArrayList(); diff --git a/src/test/org/apache/hadoop/hbase/client/TestPut.java b/src/test/org/apache/hadoop/hbase/client/TestPut.java index 972c72e1abf..3fb6ba5a6bb 100644 --- a/src/test/org/apache/hadoop/hbase/client/TestPut.java +++ b/src/test/org/apache/hadoop/hbase/client/TestPut.java @@ -42,7 +42,6 @@ public class TestPut extends HBaseClusterTestCase { private static final int SMALL_LENGTH = 1; private static final int NB_BATCH_ROWS = 10; private byte [] value; - private byte [] smallValue; private HTableDescriptor desc = null; private HTable table = null; @@ -53,7 +52,6 @@ public class TestPut extends HBaseClusterTestCase { public TestPut() throws UnsupportedEncodingException { super(); value = Bytes.toBytes("abcd"); - smallValue = Bytes.toBytes("a"); } @Override @@ -164,7 +162,7 @@ public class TestPut extends HBaseClusterTestCase { } } - public void testRowsPutBufferedManyManyFlushes() { + public void testRowsPutBufferedManyManyFlushes() throws IOException { table.setAutoFlush(false); table.setWriteBufferSize(10); ArrayList rowsUpdate = new ArrayList();