From bdef332044a6d62c2593c2966357f36524de10e1 Mon Sep 17 00:00:00 2001 From: larsh Date: Thu, 17 Apr 2014 04:08:20 +0000 Subject: [PATCH] HBASE-11010 TestChangingEncoding is unnecessarily slow. git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1588129 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/hadoop/hbase/io/encoding/TestChangingEncoding.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/io/encoding/TestChangingEncoding.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/io/encoding/TestChangingEncoding.java index 7a6aed76073..0ceb9532a80 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/io/encoding/TestChangingEncoding.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/io/encoding/TestChangingEncoding.java @@ -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(); }