[HUDI-257] Fix Bloom Index unit-test failures
This commit is contained in:
committed by
Balaji Varadarajan
parent
96a46d8701
commit
2c6da09d9d
@@ -91,6 +91,7 @@ public class TestHoodieBloomIndex extends HoodieClientTestHarness {
|
|||||||
public void setUp() throws Exception {
|
public void setUp() throws Exception {
|
||||||
initSparkContexts("TestHoodieBloomIndex");
|
initSparkContexts("TestHoodieBloomIndex");
|
||||||
initTempFolderAndPath();
|
initTempFolderAndPath();
|
||||||
|
initFileSystem();
|
||||||
HoodieTestUtils.init(jsc.hadoopConfiguration(), basePath);
|
HoodieTestUtils.init(jsc.hadoopConfiguration(), basePath);
|
||||||
// We have some records to be tagged (two different partitions)
|
// We have some records to be tagged (two different partitions)
|
||||||
schemaStr = FileIOUtils.readAsUTFString(getClass().getResourceAsStream("/exampleSchema.txt"));
|
schemaStr = FileIOUtils.readAsUTFString(getClass().getResourceAsStream("/exampleSchema.txt"));
|
||||||
@@ -100,6 +101,7 @@ public class TestHoodieBloomIndex extends HoodieClientTestHarness {
|
|||||||
@After
|
@After
|
||||||
public void tearDown() throws Exception {
|
public void tearDown() throws Exception {
|
||||||
cleanupSparkContexts();
|
cleanupSparkContexts();
|
||||||
|
cleanupFileSystem();
|
||||||
cleanupTempFolderAndPath();
|
cleanupTempFolderAndPath();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ public class TestCopyOnWriteTable extends HoodieClientTestHarness {
|
|||||||
initTempFolderAndPath();
|
initTempFolderAndPath();
|
||||||
initTableType();
|
initTableType();
|
||||||
initTestDataGenerator();
|
initTestDataGenerator();
|
||||||
|
initFileSystem();
|
||||||
}
|
}
|
||||||
|
|
||||||
@After
|
@After
|
||||||
@@ -82,6 +83,7 @@ public class TestCopyOnWriteTable extends HoodieClientTestHarness {
|
|||||||
cleanupSparkContexts();
|
cleanupSparkContexts();
|
||||||
cleanupTempFolderAndPath();
|
cleanupTempFolderAndPath();
|
||||||
cleanupTableType();
|
cleanupTableType();
|
||||||
|
cleanupFileSystem();
|
||||||
cleanupTestDataGenerator();
|
cleanupTestDataGenerator();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user