1
0

Writes relative paths to .commit files

Handle case where path is read in as null from commit file

Merged with updated release
This commit is contained in:
gekath
2017-06-13 13:35:38 -04:00
committed by prazanna
parent db7311f85e
commit 52c507f83e
4 changed files with 9 additions and 9 deletions

View File

@@ -1137,6 +1137,7 @@ public class TestHoodieClient implements Serializable {
List<HoodieCleanStat> hoodieCleanStatsFour = table.clean(jsc);
assertEquals("Must not clean any files" , 0, getCleanStat(hoodieCleanStatsFour, partitionPaths[0]).getSuccessDeleteFiles().size());
assertTrue(HoodieTestUtils.doesDataFileExist(basePath, partitionPaths[0], "002", file3P0C2));
}
@Test
public void testKeepLatestCommits() throws IOException {
@@ -1335,9 +1336,10 @@ public class TestHoodieClient implements Serializable {
inputStream.close();
// Compare values in both to make sure they are equal.
for (String pathName: paths.values()) {
for (String pathName : paths.values()) {
assertTrue(commitPathNames.contains(pathName));
}
}
private HoodieCleanStat getCleanStat(List<HoodieCleanStat> hoodieCleanStatsTwo,
String partitionPath) {