Hi,

Please find the latest report on new defect(s) introduced to cloudstack found 
with Coverity Scan.

1 new defect(s) introduced to cloudstack found with Coverity Scan.
2 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent 
build analyzed by Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)


** CID 1338016:  FindBugs: Dodgy code  (FB.REC_CATCH_EXCEPTION)
/server/src/com/cloud/storage/VolumeApiServiceImpl.java: 1258 in 
com.cloud.storage.VolumeApiServiceImpl.deleteVolume(long, 
com.cloud.user.Account)()


________________________________________________________________________________________________________
*** CID 1338016:  FindBugs: Dodgy code  (FB.REC_CATCH_EXCEPTION)
/server/src/com/cloud/storage/VolumeApiServiceImpl.java: 1258 in 
com.cloud.storage.VolumeApiServiceImpl.deleteVolume(long, 
com.cloud.user.Account)()
1252                 List<VolumeInfo> cacheVols = 
volFactory.listVolumeOnCache(volume.getId());
1253                 for (VolumeInfo volOnCache : cacheVols) {
1254                     s_logger.info("Delete volume from image cache store: " 
+ volOnCache.getDataStore().getName());
1255                     volOnCache.delete();
1256                 }
1257     
>>>     CID 1338016:  FindBugs: Dodgy code  (FB.REC_CATCH_EXCEPTION)
>>>     Catching RuntimeExceptions, perhaps unintentionally, with a catch block 
>>> for Exception
1258             } catch (Exception e) {
1259                 s_logger.warn("Failed to expunge volume:", e);
1260                 return false;
1261             }
1262     
1263             return true;


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, 
https://scan.coverity.com/projects/cloudstack?tab=overview

To manage Coverity Scan email notifications for "dev@cloudstack.apache.org", 
click 
https://scan.coverity.com/subscriptions/edit?email=dev%40cloudstack.apache.org&token=494aabd5ba647999fa41b6d766646231

Reply via email to