use of com.sequenceiq.cloudbreak.common.service.TransactionService.TransactionExecutionException in project cloudbreak by hortonworks.
the class TerminationService method finalizeTermination.
public void finalizeTermination(Long stackId, List<String> instanceIds) {
try {
transactionService.required(() -> {
Stack stack = stackService.getByIdWithListsInTransaction(stackId);
terminateMetaDataInstances(stack, instanceIds);
});
} catch (TransactionExecutionException ex) {
LOGGER.info("Failed to terminate cluster infrastructure.");
throw new TerminationFailedException(ex);
}
}
Aggregations