I came across this code snippet in hostConnect() method in 
DefaultHostListener.java. Look at the line where the used bytes is set on the 
poolVO. This looks like a serious bug. Looking at the history this code has 
been there since a year. Has anyone encountered any issues with primary storage 
capacity?

ModifyStoragePoolAnswer mspAnswer = (ModifyStoragePoolAnswer)answer;
…..
StoragePoolVO poolVO = this.primaryStoreDao.findById(poolId);
poolVO.setUsedBytes(mspAnswer.getPoolInfo().getAvailableBytes());
poolVO.setCapacityBytes(mspAnswer.getPoolInfo().getCapacityBytes());
primaryStoreDao.update(pool.getId(), poolVO);


-Koushik

Reply via email to