Moti Asayag has posted comments on this change. Change subject: engine: Add host poller for setup network actions ......................................................................
Patch Set 3: (1 comment) http://gerrit.ovirt.org/#/c/34970/3/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/host/HostSetupNetworkPoller.java File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/host/HostSetupNetworkPoller.java: Line 35: if (System.currentTimeMillis() - timeBeforePoll < POLLING_BREAK) { Line 36: Thread.sleep(POLLING_BREAK); Line 37: } Line 38: } catch (Exception e) { Line 39: // ignore failure. network can go down due to VDSM changing the network > here we get probably via failing: if the following statement fail due to TimeoutException: org.ovirt.engine.core.vdsbroker.vdsbroker.FutureVDSCommand#get(long, java.util.concurrent.TimeUnit). it means that 3 seconds already passed. So the "waiting period" between polling cycles is 3 seconds which is >> than the 0.5 second. If the wait is done on its own try/catch block, after a TimeoutException occurred, it means that the total wait time is 3 + 0.5 seconds. what are the benefits of waiting more than originally required (0.5 second) ? Line 40: } Line 41: Line 42: return false; Line 43: } -- To view, visit http://gerrit.ovirt.org/34970 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ic11e71f0ee4e4ed4d6ae9a1d8fe4e5613da7a48f Gerrit-PatchSet: 3 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Moti Asayag <masa...@redhat.com> Gerrit-Reviewer: Martin Mucha <mmu...@redhat.com> Gerrit-Reviewer: Moti Asayag <masa...@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