From 7546f9a4d9be7b0cc3e013b29da9c2536d124c47 Mon Sep 17 00:00:00 2001 From: stack Date: Tue, 7 Oct 2014 13:14:23 -0700 Subject: [PATCH] HBASE-12191 Make TestCacheOnWrite faster. --- .../java/org/apache/hadoop/hbase/io/hfile/TestCacheOnWrite.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestCacheOnWrite.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestCacheOnWrite.java index fbbccf2b19b..d3d81599eaf 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestCacheOnWrite.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestCacheOnWrite.java @@ -42,6 +42,7 @@ import org.apache.hadoop.hbase.HColumnDescriptor; import org.apache.hadoop.hbase.HConstants; import org.apache.hadoop.hbase.KeyValue; import org.apache.hadoop.hbase.Tag; +import org.apache.hadoop.hbase.client.Durability; import org.apache.hadoop.hbase.client.Put; import org.apache.hadoop.hbase.fs.HFileSystem; import org.apache.hadoop.hbase.io.compress.Compression; @@ -429,6 +430,7 @@ public class TestCacheOnWrite { } } } + p.setDurability(Durability.ASYNC_WAL); region.put(p); } region.flushcache();