Michael Kublin has posted comments on this change.

Change subject: engine: if connect storage pool fails on version mismatch, do 
reconstruct master
......................................................................


Patch Set 3: (3 inline comments)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/eventqueue/EventQueueMonitor.java
Line 70:             Event currentEvent = 
poolCurrentEventMap.get(storagePoolId);
Line 71:             if (currentEvent != null) {
Line 72:                 switch (currentEvent.getEventType()) {
Line 73:                 case RECONSTRUCT:
Line 74:                     if (event.getEventType() == 
EventType.VDSCONNECTTOPOOL) {
change logic, it is located now in one place and can be easily changed
Line 75:                         task = addTaskToQueue(event, callable, 
storagePoolId);
Line 76:                     } else {
Line 77:                         log.debugFormat("Current event was skiped 
because of reconstruct is running now for pool {0}, event {1}",
Line 78:                                 storagePoolId, event);


....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/StorageHandlingCommandBase.java
Line 38: 
Line 39: public abstract class StorageHandlingCommandBase<T extends 
StoragePoolParametersBase> extends CommandBase<T> {
Line 40:     public StorageHandlingCommandBase(T parameters) {
Line 41:         super(parameters);
Line 42:         setVdsId(parameters.getVdsId());
I will do these in separate patch
Line 43:         if (getParameters() != null && 
!getParameters().getStoragePoolId().equals(Guid.Empty)) {
Line 44:             setStoragePoolId(getParameters().getStoragePoolId());
Line 45:         }
Line 46:     }


....................................................
File 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/eventqueue/EventType.java
Line 6:     DOMAINNOTOPERATIONAL,
Line 7:     VDSSTOARGEPROBLEMS,
Line 8:     DOMAINMONITORING,
Line 9:     VDSCLEARCACHE,
Line 10:     VDSCONNECTTOPOOL;
Because these patch introduce a new event and add change to existing logic. 
Previous patch just introduced a queue and makes code cleaner and understandable


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Ia0d11c068399664daf85a6b03e67d25cd382707e
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Michael Kublin <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Ayal Baron <[email protected]>
Gerrit-Reviewer: Barak Azulay <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Liron Aravot <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Michael Kublin <[email protected]>
Gerrit-Reviewer: Tal Nisan <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to