1
0

[HUDI-257] Fix Bloom Index unit-test failures

This commit is contained in:
Balaji Varadarajan
2019-09-16 23:42:14 -07:00
committed by Balaji Varadarajan
parent 96a46d8701
commit 2c6da09d9d
2 changed files with 4 additions and 0 deletions

View File

@@ -91,6 +91,7 @@ public class TestHoodieBloomIndex extends HoodieClientTestHarness {
public void setUp() throws Exception {
initSparkContexts("TestHoodieBloomIndex");
initTempFolderAndPath();
initFileSystem();
HoodieTestUtils.init(jsc.hadoopConfiguration(), basePath);
// We have some records to be tagged (two different partitions)
schemaStr = FileIOUtils.readAsUTFString(getClass().getResourceAsStream("/exampleSchema.txt"));
@@ -100,6 +101,7 @@ public class TestHoodieBloomIndex extends HoodieClientTestHarness {
@After
public void tearDown() throws Exception {
cleanupSparkContexts();
cleanupFileSystem();
cleanupTempFolderAndPath();
}

View File

@@ -75,6 +75,7 @@ public class TestCopyOnWriteTable extends HoodieClientTestHarness {
initTempFolderAndPath();
initTableType();
initTestDataGenerator();
initFileSystem();
}
@After
@@ -82,6 +83,7 @@ public class TestCopyOnWriteTable extends HoodieClientTestHarness {
cleanupSparkContexts();
cleanupTempFolderAndPath();
cleanupTableType();
cleanupFileSystem();
cleanupTestDataGenerator();
}