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
This commit is contained in:
parent
f9c78255bb
commit
ed8ba5dff3
|
@ -104,7 +104,7 @@ public class TestBatchUpdate extends HBaseClusterTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testRowsBatchUpdateBufferedManyManyFlushes() {
|
public void testRowsBatchUpdateBufferedManyManyFlushes() throws IOException {
|
||||||
table.setAutoFlush(false);
|
table.setAutoFlush(false);
|
||||||
table.setWriteBufferSize(10);
|
table.setWriteBufferSize(10);
|
||||||
ArrayList<BatchUpdate> rowsUpdate = new ArrayList<BatchUpdate>();
|
ArrayList<BatchUpdate> rowsUpdate = new ArrayList<BatchUpdate>();
|
||||||
|
|
|
@ -42,7 +42,6 @@ public class TestPut extends HBaseClusterTestCase {
|
||||||
private static final int SMALL_LENGTH = 1;
|
private static final int SMALL_LENGTH = 1;
|
||||||
private static final int NB_BATCH_ROWS = 10;
|
private static final int NB_BATCH_ROWS = 10;
|
||||||
private byte [] value;
|
private byte [] value;
|
||||||
private byte [] smallValue;
|
|
||||||
|
|
||||||
private HTableDescriptor desc = null;
|
private HTableDescriptor desc = null;
|
||||||
private HTable table = null;
|
private HTable table = null;
|
||||||
|
@ -53,7 +52,6 @@ public class TestPut extends HBaseClusterTestCase {
|
||||||
public TestPut() throws UnsupportedEncodingException {
|
public TestPut() throws UnsupportedEncodingException {
|
||||||
super();
|
super();
|
||||||
value = Bytes.toBytes("abcd");
|
value = Bytes.toBytes("abcd");
|
||||||
smallValue = Bytes.toBytes("a");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -164,7 +162,7 @@ public class TestPut extends HBaseClusterTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testRowsPutBufferedManyManyFlushes() {
|
public void testRowsPutBufferedManyManyFlushes() throws IOException {
|
||||||
table.setAutoFlush(false);
|
table.setAutoFlush(false);
|
||||||
table.setWriteBufferSize(10);
|
table.setWriteBufferSize(10);
|
||||||
ArrayList<Put> rowsUpdate = new ArrayList<Put>();
|
ArrayList<Put> rowsUpdate = new ArrayList<Put>();
|
||||||
|
|
Loading…
Reference in New Issue