Michael Kublin has posted comments on this change.

Change subject: [wip] core: storage domain failover process never runs
......................................................................


Patch Set 6: (1 inline comment)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/eventqueue/EventQueueMonitor.java
Line 67:         try {
Line 68:             Event currentEvent = 
poolCurrentEventMap.get(storagePoolId);
Line 69:             if (currentEvent != null) {
Line 70:                 switch (currentEvent.getEventType()) {
Line 71:                 case RECOVERY:
The reason is for adding EventType.DOMAINFAILOVER  is that theoraticly event 
can be not added and queue and if recovery will fail a cache for timers will 
not be cleared, so a domain fail-over will never runs for domain.
DOMAINMONITORING can be skipped, it event that run each 5 seconds, so after 
recovery failure it can be not relevant any more. By the way, by old 
implementation, DOMAINMONITORING was always skipped during reconstruct or 
recovery also.
Line 72:                     if (event.getEventType() == 
EventType.VDSCONNECTTOPOOL || event.getEventType() == EventType.VDSCLEARCACHE) {
Line 73:                         task = addTaskToQueue(event, callable, 
storagePoolId, isEventShouldBeFirst(event));
Line 74:                     } else {
Line 75:                         log.debugFormat("Current event was skiped 
because of recovery is running now for pool {0}, event {1}",


--
To view, visit http://gerrit.ovirt.org/12237
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1a45098dc4eb2607dd12dabf3c0d526e8bebca7
Gerrit-PatchSet: 6
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Liron Aravot <lara...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Ayal Baron <aba...@redhat.com>
Gerrit-Reviewer: Daniel Paikov <pai...@gmail.com>
Gerrit-Reviewer: Liron Aravot <lara...@redhat.com>
Gerrit-Reviewer: Maor Lipchuk <mlipc...@redhat.com>
Gerrit-Reviewer: Michael Kublin <mkub...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to