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:
larsh 2014-04-17 04:08:20 +00:00
parent b4ad3d27d2
commit bdef332044
1 changed files with 2 additions and 0 deletions

View File

@ -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();
}