hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r805236 - in /hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/client: TestBatchUpdate.java TestPut.java
Date Tue, 18 Aug 2009 00:21:10 GMT
Author: stack
Date: Tue Aug 18 00:21:10 2009
New Revision: 805236

URL: http://svn.apache.org/viewvc?rev=805236&view=rev
Log:
HBASE-1773  Fix broken tests (setWriteBuffer now throws IOE)

Modified:
    hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/client/TestBatchUpdate.java
    hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/client/TestPut.java

Modified: hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/client/TestBatchUpdate.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/client/TestBatchUpdate.java?rev=805236&r1=805235&r2=805236&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/client/TestBatchUpdate.java (original)
+++ hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/client/TestBatchUpdate.java Tue Aug
18 00:21:10 2009
@@ -104,7 +104,7 @@
     }
   }
   
-  public void testRowsBatchUpdateBufferedManyManyFlushes() {
+  public void testRowsBatchUpdateBufferedManyManyFlushes() throws IOException {
     table.setAutoFlush(false);
     table.setWriteBufferSize(10);
     ArrayList<BatchUpdate> rowsUpdate = new ArrayList<BatchUpdate>();

Modified: hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/client/TestPut.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/client/TestPut.java?rev=805236&r1=805235&r2=805236&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/client/TestPut.java (original)
+++ hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/client/TestPut.java Tue Aug 18 00:21:10
2009
@@ -42,7 +42,6 @@
   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 TestPut() throws UnsupportedEncodingException {
     super();
     value = Bytes.toBytes("abcd");
-    smallValue = Bytes.toBytes("a");
   }
   
   @Override
@@ -164,7 +162,7 @@
     }
   }
   
-  public void testRowsPutBufferedManyManyFlushes() {
+  public void testRowsPutBufferedManyManyFlushes() throws IOException {
     table.setAutoFlush(false);
     table.setWriteBufferSize(10);
     ArrayList<Put> rowsUpdate = new ArrayList<Put>();



Mime
View raw message