1
0

Handle inflight clean instants during Hoodie instants archiving

This commit is contained in:
Jian Xu
2018-03-01 14:04:16 -08:00
committed by vinoth chandar
parent 5d5c306e64
commit dfd1979c51
3 changed files with 27 additions and 3 deletions

View File

@@ -124,6 +124,14 @@ public class HoodieTestUtils {
}
}
public static final void createInflightCleanFiles(String basePath, String... commitTimes)
throws IOException {
for (String commitTime : commitTimes) {
new File(basePath + "/" + HoodieTableMetaClient.METAFOLDER_NAME + "/" +
HoodieTimeline.makeInflightCleanerFileName(commitTime)).createNewFile();
}
}
public static final String createNewDataFile(String basePath, String partitionPath,
String commitTime) throws IOException {
String fileID = UUID.randomUUID().toString();