From b7be26aeefb4d4ea1945935c07b00bc269bc1a02 Mon Sep 17 00:00:00 2001 From: manukranthk Date: Tue, 7 Oct 2014 11:27:14 -0700 Subject: [PATCH] [INTERNAL] FixTestCacheOnWrite Summary: This test is intended to verify the cache on write capabilities of the LRUBlockCache and doesn't really case about the data being synced to wal periodically or not. In cases where there is a region server death the test is screwed anyway because it tests an inmemeory status. So, setting Durability to ASYNC is a no risk change and makes the test run faster. Test Plan: Unit test. Reviewers: elliott, daviddeng Subscribers: bisho, hbase-eng@ Differential Revision: https://phabricator.fb.com/D1600313 Tasks: 5285949 --- .../test/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 c0e5ade..d2522eb 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 @@ -43,6 +43,7 @@ import org.apache.hadoop.hbase.HConstants; import org.apache.hadoop.hbase.KeyValue; import org.apache.hadoop.hbase.MediumTests; 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; @@ -428,6 +429,7 @@ public class TestCacheOnWrite { } } } + p.setDurability(Durability.ASYNC_WAL); region.put(p); } region.flushcache(); -- 1.9.4