[HUDI-716] Exception: Not an Avro data file when running HoodieCleanClient.runClean (#1432)
This commit is contained in:
@@ -487,6 +487,15 @@ public class FSUtils {
|
||||
});
|
||||
}
|
||||
|
||||
public static void deleteInstantFile(FileSystem fs, String metaPath, HoodieInstant instant) {
|
||||
try {
|
||||
LOG.warn("try to delete instant file: " + instant);
|
||||
fs.delete(new Path(metaPath, instant.getFileName()), false);
|
||||
} catch (IOException e) {
|
||||
throw new HoodieIOException("Could not delete instant file" + instant.getFileName(), e);
|
||||
}
|
||||
}
|
||||
|
||||
public static void deleteOlderRestoreMetaFiles(FileSystem fs, String metaPath, Stream<HoodieInstant> instants) {
|
||||
// TODO - this should be archived when archival is made general for all meta-data
|
||||
// skip MIN_ROLLBACK_TO_KEEP and delete rest
|
||||
|
||||
Reference in New Issue
Block a user