nagaboinaramgopal opened a new pull request, #14052:
URL: https://github.com/apache/cloudstack/pull/14052

   checkUsagedSpace divided used by total capacity without guarding a zero 
total. A pool reporting capacityBytes == 0 with zero used produced NaN, and NaN 
>= threshold is false, so the method returned true and reported that a pool 
with no capacity had space, letting allocation or resize proceed onto it. 
Return false when the pool reports no capacity.
   
   Tested: new unit test checkUsagedSpaceReturnsFalseForZeroCapacityPool (fails 
before, passes after); StorageManagerImplTest green.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to