Skip to content

Commit 1068bcd

Browse files
committed
[HUDI-4163] Catch general exception instead of IOException while fetching rollback plan during rollback
If the avro file is corrupted, an InvalidAvroMagicException throws.
1 parent 85962ee commit 1068bcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/BaseHoodieWriteClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,7 @@ protected Map<String, Option<HoodiePendingRollbackInfo>> getPendingRollbackInfos
11181118
HoodieRollbackPlan rollbackPlan;
11191119
try {
11201120
rollbackPlan = RollbackUtils.getRollbackPlan(metaClient, rollbackInstant);
1121-
} catch (IOException e) {
1121+
} catch (Exception e) {
11221122
if (rollbackInstant.isRequested()) {
11231123
LOG.warn("Fetching rollback plan failed for " + rollbackInstant + ", deleting the plan since it's in REQUESTED state", e);
11241124
try {

0 commit comments

Comments
 (0)