HBASE-11010 TestChangingEncoding is unnecessarily slow.
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1588129 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b4ad3d27d2
commit
bdef332044
|
@ -138,6 +138,7 @@ public class TestChangingEncoding {
|
|||
int batchId) throws Exception {
|
||||
LOG.debug("Writing test data batch " + batchId);
|
||||
HTable table = new HTable(conf, tableName);
|
||||
table.setAutoFlushTo(false);
|
||||
for (int i = 0; i < NUM_ROWS_PER_BATCH; ++i) {
|
||||
Put put = new Put(getRowKey(batchId, i));
|
||||
for (int j = 0; j < NUM_COLS_PER_ROW; ++j) {
|
||||
|
@ -147,6 +148,7 @@ public class TestChangingEncoding {
|
|||
put.setDurability(Durability.SKIP_WAL);
|
||||
table.put(put);
|
||||
}
|
||||
table.flushCommits();
|
||||
table.close();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue