Maor Lipchuk has posted comments on this change. Change subject: core: update LUN device size using getVmStats ......................................................................
Patch Set 1: (1 comment) .................................................... File backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/VdsUpdateRunTimeInfo.java Line 1008: Line 1009: LUNs lunFromDB = ((LunDisk) disk).getLun(); Line 1010: LUNs lunFromMap = lunsMap.get(lunFromDB.getId()); Line 1011: Line 1012: if (lunFromMap != null && lunFromMap.getDeviceSize() != 0 1. If that should not happened then better to remove this check at all, we only hide a bug that way. 2. So please add a comment that it will be more easy to maintain this in the future Line 1013: && lunFromMap.getDeviceSize() != lunFromDB.getDeviceSize()) { Line 1014: // Found a mismatch - set LUN for update Line 1015: log.infoFormat("Updated LUN device size - ID: {0}, previous size: {1}, new size: {2}.", Line 1016: lunFromDB.getLUN_id(), lunFromDB.getDeviceSize(), lunFromMap.getDeviceSize()); -- To view, visit http://gerrit.ovirt.org/22978 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ie0d4d805ca333990ea1f612eb03a87f4a505f4a8 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Daniel Erez <de...@redhat.com> Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com> Gerrit-Reviewer: Ayal Baron <aba...@redhat.com> Gerrit-Reviewer: Daniel Erez <de...@redhat.com> Gerrit-Reviewer: Maor Lipchuk <mlipc...@redhat.com> Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com> Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches