CLOUDSTACK-6969. Data Volume Shrink operation failing with "Unexpected Exception".

This commit is contained in:
Likitha Shetty 2014-10-01 14:30:52 +05:30
parent 65ed25b7a6
commit bca71ec169
1 changed files with 6 additions and 1 deletions

View File

@ -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