Omer Frenkel has posted comments on this change. Change subject: core: Lazy init ArrayList when monitoring lun ......................................................................
Patch Set 2: (1 comment) http://gerrit.ovirt.org/#/c/37497/2/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/VmsMonitoring.java File backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/VmsMonitoring.java: Line 230: externalVms.add(new Pair<>(vmUpdater.getDbVm(), vmUpdater.getVdsmVm())); Line 231: } Line 232: Line 233: if (!vmUpdater.getUpdatedLuns().isEmpty()) { Line 234: vmUpdater.getUpdatedLuns().addAll(vmLunDisksToSave); > thats exactly the purpose of the analyzer. to gather data. and the vmsmonit i agree, but the analyzer is per vm, and here you set info from multiple vms (VmsMonitoring.vmLunDisksToSave) to a specific vm analyzer.. so after this line, the info inside is not correct anymore and cannot be used again. Line 235: vmLunDisksToSave = vmUpdater.getUpdatedLuns(); Line 236: } Line 237: } Line 238: -- To view, visit http://gerrit.ovirt.org/37497 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Id43aa4995f9170cafea45e5998c2c305e9d1462c Gerrit-PatchSet: 2 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Roy Golan <rgo...@redhat.com> Gerrit-Reviewer: Daniel Erez <de...@redhat.com> Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com> Gerrit-Reviewer: Roy Golan <rgo...@redhat.com> Gerrit-Reviewer: automat...@ovirt.org 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