diff --git hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/StoreFileWriter.java hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/StoreFileWriter.java index ccfd735..88cba75 100644 --- hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/StoreFileWriter.java +++ hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/StoreFileWriter.java @@ -384,6 +384,15 @@ public class StoreFileWriter implements CellSink, ShipperListener { } /** + * Creates Builder with cache configuration disabled + */ + public Builder(Configuration conf, FileSystem fs) { + this.conf = conf; + this.cacheConf = CacheConfig.DISABLED; + this.fs = fs; + } + + /** * @param trt A premade TimeRangeTracker to use rather than build one per append (building one * of these is expensive so good to pass one in if you have one). * @return this (for chained invocation) diff --git hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestHFile.java hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestHFile.java index 7074c9d..4db459a 100644 --- hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestHFile.java +++ hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestHFile.java @@ -115,7 +115,7 @@ public class TestHFile { Path storeFileParentDir = new Path(TEST_UTIL.getDataTestDir(), "TestHFile"); HFileContext meta = new HFileContextBuilder().withBlockSize(64 * 1024).build(); StoreFileWriter sfw = - new StoreFileWriter.Builder(conf, cacheConf, fs).withOutputDir(storeFileParentDir) + new StoreFileWriter.Builder(conf, fs).withOutputDir(storeFileParentDir) .withComparator(CellComparator.COMPARATOR).withFileContext(meta).build(); final int rowLen = 32;