1
0

[HUDI-4163] Catch general exception instead of IOException while fetching rollback plan during rollback (#5703)

If the avro file is corrupted, an InvalidAvroMagicException throws.
This commit is contained in:
Danny Chan
2022-05-30 13:08:02 +08:00
committed by GitHub
parent 7e86884604
commit 329da34ee0

View File

@@ -1118,7 +1118,7 @@ public abstract class BaseHoodieWriteClient<T extends HoodieRecordPayload, I, K,
HoodieRollbackPlan rollbackPlan;
try {
rollbackPlan = RollbackUtils.getRollbackPlan(metaClient, rollbackInstant);
} catch (IOException e) {
} catch (Exception e) {
if (rollbackInstant.isRequested()) {
LOG.warn("Fetching rollback plan failed for " + rollbackInstant + ", deleting the plan since it's in REQUESTED state", e);
try {