Maor Lipchuk has submitted this change and it was merged.
Change subject: core: Add a shared domains comparator when reconstruct.
......................................................................
core: Add a shared domains comparator when reconstruct.
When electing a new master, reconstruction is attempted according to an
ascending order of the last time a domain was used as a master.
In a DC that contains both shared and local domains,
we should add a secondary criteria to prefer shared domains over local
domains for resiliency considerations.
Change-Id: Iaaa15e56531c046a45eaf201b0d989dbfc7e8517
Bug-Url:
https://bugzilla.redhat.com/1353134
Signed-off-by: Maor Lipchuk <mlipchuk(a)redhat.com>
---
M
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/domain/StorageDomainCommandBase.java
M
backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/storage/domain/StorageDomainCommandBaseTest.java
2 files changed, 100 insertions(+), 4 deletions(-)
Approvals:
Jenkins CI: Passed CI tests
Allon Mureinik: Looks good to me, approved
Maor Lipchuk: Verified
--
To view, visit
https://gerrit.ovirt.org/60301
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Iaaa15e56531c046a45eaf201b0d989dbfc7e8517
Gerrit-PatchSet: 9
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Maor Lipchuk <mlipchuk(a)redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Maor Lipchuk <mlipchuk(a)redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation(a)ovirt.org>