1
0

[Minor] Catch and ignore all the exceptions in quietDeleteMarkerDir (#4301)

Co-authored-by: yuezhang <yuezhang@freewheel.tv>
This commit is contained in:
zhangyue19921010
2021-12-17 03:15:08 +08:00
committed by GitHub
parent ea2eba1a55
commit a8a192aef5

View File

@@ -23,7 +23,6 @@ import org.apache.hudi.common.fs.FSUtils;
import org.apache.hudi.common.model.IOType;
import org.apache.hudi.common.table.HoodieTableMetaClient;
import org.apache.hudi.common.util.Option;
import org.apache.hudi.exception.HoodieIOException;
import org.apache.hadoop.fs.Path;
import org.apache.log4j.LogManager;
@@ -87,8 +86,8 @@ public abstract class WriteMarkers implements Serializable {
try {
context.setJobStatus(this.getClass().getSimpleName(), "Deleting marker directory");
deleteMarkerDir(context, parallelism);
} catch (HoodieIOException ioe) {
LOG.warn("Error deleting marker directory for instant " + instantTime, ioe);
} catch (Exception e) {
LOG.warn("Error deleting marker directory for instant " + instantTime, e);
}
}