private static void executeCommitSequence(List<CommitStep> steps) throws IOException { for (CommitStep step : steps) { step.execute(); } }
/** * Execute the {@link CommitStep}s in the order they are added to the commit sequence. */ public void execute() { try { for (CommitStep step : this.steps) { if (!step.isCompleted()) { step.execute(); } } } catch (Throwable t) { log.error("Commit failed for dataset " + this.datasetUrn, t); throw Throwables.propagate(t); } }
for (CommitStep cleanupCommitStep : this.cleanupCommitSteps) { log.info("Executing additional commit step."); cleanupCommitStep.execute();
/** * Execute the {@link CommitStep}s in the order they are added to the commit sequence. */ public void execute() { try { for (CommitStep step : this.steps) { if (!step.isCompleted()) { step.execute(); } } } catch (Throwable t) { log.error("Commit failed for dataset " + this.datasetUrn, t); throw Throwables.propagate(t); } }
cleanUpCommitStep.execute(); } else { LOG.info("Adding additional commit step");
private static void executeCommitSequence(List<CommitStep> steps) throws IOException { for (CommitStep step : steps) { step.execute(); } }
for (CommitStep cleanupCommitStep : this.cleanupCommitSteps) { log.info("Executing additional commit step."); cleanupCommitStep.execute();
cleanUpCommitStep.execute(); } else { LOG.info("Adding additional commit step");