Skip to content

Commit e0f9133

Browse files
committed
HBASE-23746 [Flakey Tests] Caused by: org.apache.hadoop.hbase.util.CommonFSUtils$StreamLacksCapabilityException: hflush and hsync
1 parent ff3d2ae commit e0f9133

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestHFilePrettyPrinter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import org.apache.hadoop.hbase.testclassification.IOTests;
3434
import org.apache.hadoop.hbase.testclassification.SmallTests;
3535
import org.apache.hadoop.hbase.util.Bytes;
36+
import org.apache.hadoop.hbase.util.CommonFSUtils;
3637
import org.apache.hadoop.hbase.util.FSUtils;
3738
import org.junit.After;
3839
import org.junit.Before;
@@ -64,6 +65,8 @@ public class TestHFilePrettyPrinter {
6465
@Before
6566
public void setup() throws Exception {
6667
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);
6770
fs = UTIL.getTestFileSystem();
6871
stream = new ByteArrayOutputStream();
6972
ps = new PrintStream(stream);

hbase-server/src/test/java/org/apache/hadoop/hbase/procedure2/store/region/RegionProcedureStoreTestBase.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ protected void configure(Configuration conf) {
4646
public void setUp() throws IOException {
4747
htu = new HBaseCommonTestingUtility();
4848
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);
4951
configure(htu.getConfiguration());
5052
Path testDir = htu.getDataTestDir();
5153
CommonFSUtils.setWALRootDir(htu.getConfiguration(), testDir);

0 commit comments

Comments
 (0)