mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-6969. Data Volume Shrink operation failing with "Unexpected Exception".
This commit is contained in:
parent
65ed25b7a6
commit
bca71ec169
|
|
@ -1046,12 +1046,17 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic
|
|||
} else {
|
||||
_resourceLimitMgr.decrementResourceCount(volume.getAccountId(), ResourceType.primary_storage, volume.isDisplayVolume(), new Long(currentSize - newSize));
|
||||
}
|
||||
return volume;
|
||||
} catch (InterruptedException e) {
|
||||
s_logger.warn("failed get resize volume result", e);
|
||||
throw new CloudRuntimeException(e.getMessage());
|
||||
} catch (ExecutionException e) {
|
||||
s_logger.warn("failed get resize volume result", e);
|
||||
throw new CloudRuntimeException(e.getMessage());
|
||||
} catch (Exception e) {
|
||||
s_logger.warn("failed get resize volume result", e);
|
||||
throw new CloudRuntimeException(e.getMessage());
|
||||
}
|
||||
return volume;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in New Issue