use of com.emc.storageos.volumecontroller.impl.block.taskcompleter.TaskLockingCompleter in project coprhd-controller by CoprHD.
the class RPDeviceController method doFailAddStep.
private void doFailAddStep(List<VolumeDescriptor> volumeDescriptors, String taskId, Exception e) throws InternalException {
final List<URI> volumeURIs = getVolumeURIs(volumeDescriptors);
final TaskLockingCompleter completer = new RPCGCreateCompleter(volumeURIs, taskId);
_log.error("Could not create protection for RecoverPoint on volumes: " + volumeURIs, e);
final ServiceCoded error;
if (e instanceof ServiceCoded) {
error = (ServiceCoded) e;
} else {
error = DeviceControllerErrors.recoverpoint.couldNotCreateProtectionOnVolumes(volumeURIs);
}
_log.error(error.getMessage());
completer.error(_dbClient, _locker, error);
}
Aggregations