for (String containerPath : repo.getContainerPaths()) {
String datasourceId = repo.getRelatedId(containerPath);
try {
DirectDataSource datasource = repo.getRelatedDataSource(containerPath);
OutputTransactionContext context = HadoopDataSourceUtil.createContext(executionId, datasourceId);
datasource.commitTransactionOutput(context);
datasource.cleanupTransactionOutput(context);
} catch (IOException e) {
succeed = false;
LOG.error(MessageFormat.format(
"Failed to apply transaction (datastoreId={0}, executionId={1})",