File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
hbase-server/src/test/java/org/apache/hadoop/hbase Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 33
33
import org .apache .hadoop .hbase .testclassification .IOTests ;
34
34
import org .apache .hadoop .hbase .testclassification .SmallTests ;
35
35
import org .apache .hadoop .hbase .util .Bytes ;
36
+ import org .apache .hadoop .hbase .util .CommonFSUtils ;
36
37
import org .apache .hadoop .hbase .util .FSUtils ;
37
38
import org .junit .After ;
38
39
import org .junit .Before ;
@@ -64,6 +65,8 @@ public class TestHFilePrettyPrinter {
64
65
@ Before
65
66
public void setup () throws Exception {
66
67
conf = UTIL .getConfiguration ();
68
+ // Runs on local filesystem. Test does not need sync. Turn off checks.
69
+ conf .setBoolean (CommonFSUtils .UNSAFE_STREAM_CAPABILITY_ENFORCE , false );
67
70
fs = UTIL .getTestFileSystem ();
68
71
stream = new ByteArrayOutputStream ();
69
72
ps = new PrintStream (stream );
Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ protected void configure(Configuration conf) {
46
46
public void setUp () throws IOException {
47
47
htu = new HBaseCommonTestingUtility ();
48
48
htu .getConfiguration ().setBoolean (MemStoreLAB .USEMSLAB_KEY , false );
49
+ // Runs on local filesystem. Test does not need sync. Turn off checks.
50
+ htu .getConfiguration ().setBoolean (CommonFSUtils .UNSAFE_STREAM_CAPABILITY_ENFORCE , false );
49
51
configure (htu .getConfiguration ());
50
52
Path testDir = htu .getDataTestDir ();
51
53
CommonFSUtils .setWALRootDir (htu .getConfiguration (), testDir );
You can’t perform that action at this time.
0 commit comments