public abstract class BaseRollbackActionExecutor<T extends HoodieRecordPayload,I,K,O> extends BaseActionExecutor<T,I,K,O,HoodieRollbackMetadata>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
deleteInstants |
protected HoodieInstant |
instantToRollback |
protected HoodieInstant |
resolvedInstant |
protected boolean |
skipTimelinePublish |
config, context, hadoopConf, instantTime, table| Constructor and Description |
|---|
BaseRollbackActionExecutor(HoodieEngineContext context,
HoodieWriteConfig config,
HoodieTable<T,I,K,O> table,
String instantTime,
HoodieInstant instantToRollback,
boolean deleteInstants,
boolean skipLocking) |
BaseRollbackActionExecutor(HoodieEngineContext context,
HoodieWriteConfig config,
HoodieTable<T,I,K,O> table,
String instantTime,
HoodieInstant instantToRollback,
boolean deleteInstants,
boolean skipTimelinePublish,
boolean skipLocking) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
deleteInflightAndRequestedInstant(boolean deleteInstant,
HoodieActiveTimeline activeTimeline,
HoodieInstant instantToBeDeleted)
Delete Inflight instant if enabled.
|
List<HoodieRollbackStat> |
doRollbackAndGetStats(HoodieRollbackPlan hoodieRollbackPlan) |
protected void |
dropBootstrapIndexIfNeeded(HoodieInstant instantToRollback) |
HoodieRollbackMetadata |
execute() |
protected List<HoodieRollbackStat> |
executeRollback(HoodieInstant instantToRollback,
HoodieRollbackPlan rollbackPlan)
Execute rollback and fetch rollback stats.
|
protected abstract List<HoodieRollbackStat> |
executeRollback(HoodieRollbackPlan hoodieRollbackPlan)
Execute actual rollback and fetch list of RollbackStats.
|
protected void |
finishRollback(HoodieInstant inflightInstant,
HoodieRollbackMetadata rollbackMetadata) |
writeTableMetadata, writeTableMetadata, writeTableMetadata, writeTableMetadataprotected final HoodieInstant instantToRollback
protected final boolean deleteInstants
protected final boolean skipTimelinePublish
protected HoodieInstant resolvedInstant
public BaseRollbackActionExecutor(HoodieEngineContext context, HoodieWriteConfig config, HoodieTable<T,I,K,O> table, String instantTime, HoodieInstant instantToRollback, boolean deleteInstants, boolean skipLocking)
public BaseRollbackActionExecutor(HoodieEngineContext context, HoodieWriteConfig config, HoodieTable<T,I,K,O> table, String instantTime, HoodieInstant instantToRollback, boolean deleteInstants, boolean skipTimelinePublish, boolean skipLocking)
protected abstract List<HoodieRollbackStat> executeRollback(HoodieRollbackPlan hoodieRollbackPlan) throws IOException
hoodieRollbackPlan - instance of HoodieRollbackPlan that needs to be executed.HoodieRollbackStats.IOExceptionpublic HoodieRollbackMetadata execute()
execute in class BaseActionExecutor<T extends HoodieRecordPayload,I,K,O,HoodieRollbackMetadata>public List<HoodieRollbackStat> doRollbackAndGetStats(HoodieRollbackPlan hoodieRollbackPlan)
protected List<HoodieRollbackStat> executeRollback(HoodieInstant instantToRollback, HoodieRollbackPlan rollbackPlan)
instantToRollback - instant to be rolled back.rollbackPlan - instance of HoodieRollbackPlan for which rollback needs to be executed.HoodieRollbackStats.protected void finishRollback(HoodieInstant inflightInstant, HoodieRollbackMetadata rollbackMetadata) throws HoodieIOException
HoodieIOExceptionprotected void deleteInflightAndRequestedInstant(boolean deleteInstant,
HoodieActiveTimeline activeTimeline,
HoodieInstant instantToBeDeleted)
deleteInstant - Enable Deletion of Inflight instantactiveTimeline - Hoodie active timelineinstantToBeDeleted - Instant to be deletedprotected void dropBootstrapIndexIfNeeded(HoodieInstant instantToRollback)
Copyright © 2022 The Apache Software Foundation. All rights reserved.