[HUDI-3346] Fixing non existant marker dir handling in TwoToOnedowngrade (#4726)
This commit is contained in:
committed by
GitHub
parent
7ce0f4522b
commit
f140c58d9e
@@ -115,9 +115,11 @@ public class TwoToOneDowngradeHandler implements DowngradeHandler {
|
||||
+ "\" is not supported for rollback.");
|
||||
}
|
||||
} else {
|
||||
// In case of partial failures during downgrade, there is a chance that marker type file was deleted,
|
||||
// but timeline server based marker files are left. So deletes them if any
|
||||
deleteTimelineBasedMarkerFiles(context, markerDir, fileSystem, parallelism);
|
||||
if (fileSystem.exists(new Path(markerDir))) {
|
||||
// In case of partial failures during downgrade, there is a chance that marker type file was deleted,
|
||||
// but timeline server based marker files are left. So deletes them if any
|
||||
deleteTimelineBasedMarkerFiles(context, markerDir, fileSystem, parallelism);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user