File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
hbase-server/src/test/java/org/apache/hadoop/hbase Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 4242import org .apache .hadoop .hbase .testclassification .MiscTests ;
4343import org .apache .hadoop .hbase .util .Bytes ;
4444import org .apache .hadoop .hbase .util .Pair ;
45+ import org .junit .Before ;
4546import org .junit .BeforeClass ;
4647import org .junit .ClassRule ;
4748import org .junit .Test ;
@@ -66,11 +67,16 @@ public static void setUp() throws Exception {
6667 UTIL .getConfiguration ().setInt (HConstants .HBASE_CLIENT_RETRIES_NUMBER , 2 );
6768 UTIL .getConfiguration ().setBoolean (CACHE_BLOCKS_ON_WRITE_KEY , true );
6869 UTIL .getConfiguration ().setBoolean (PREFETCH_BLOCKS_ON_OPEN_KEY , true );
69- UTIL .getConfiguration ().set (BUCKET_CACHE_IOENGINE_KEY , "offheap" );
7070 UTIL .getConfiguration ().setInt (BUCKET_CACHE_SIZE_KEY , 200 );
7171 UTIL .getConfiguration ().set (StoreFileTrackerFactory .TRACKER_IMPL , "FILE" );
7272 }
7373
74+ @ Before
75+ public void testSetup () {
76+ UTIL .getConfiguration ().set (BUCKET_CACHE_IOENGINE_KEY ,
77+ "file:" + UTIL .getDataTestDir () + "/bucketcache" );
78+ }
79+
7480 @ Test
7581 public void testEvictOnSplit () throws Exception {
7682 doTestEvictOnSplit ("testEvictOnSplit" , true ,
You can’t perform that action at this time.
0 commit comments