1
0

[HUDI-1895] Close the file handles gracefully for flink write function to avoid corrupted files (#2938)

This commit is contained in:
Danny Chan
2021-05-12 18:44:10 +08:00
committed by GitHub
parent 5a8b2a4f86
commit b98c9ab439
10 changed files with 103 additions and 34 deletions

View File

@@ -392,9 +392,8 @@ public class HoodieDataSourceITCase extends AbstractTestBase {
assertRowsEquals(result, "[id1,Sophia,18,1970-01-01T00:00:05,par5]");
}
@ParameterizedTest
@EnumSource(value = ExecMode.class)
void testStreamReadEmptyTablePath(ExecMode execMode) throws Exception {
@Test
void testStreamReadEmptyTablePath() throws Exception {
// create an empty table
Configuration conf = TestConfigurations.getDefaultConf(tempFile.getAbsolutePath());
StreamerUtil.initTableIfNotExists(conf);