[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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user