Bug 985623
Summary: | unable to add to an AD domain (Exception message is: Comparison method violates its general contract!) | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Vagner Farias <vfarias> | ||||
Component: | ovirt-engine-config | Assignee: | Yair Zaslavsky <yzaslavs> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Pavel Stehlik <pstehlik> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 3.2.0 | CC: | acathrow, adevolder, iheim, oourfali, Rhev-m-bugs, yeylon | ||||
Target Milestone: | --- | ||||||
Target Release: | 3.3.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | infra | ||||||
Fixed In Version: | is10 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2014-01-21 22:16:17 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1019461 | ||||||
Attachments: |
|
Description
Vagner Farias
2013-07-17 23:23:30 UTC
Created attachment 775013 [details]
sample dns zone to trigger error
Dirty and ugly zone file. It's incomplete from a DNS perspective, but it triggers the error.
If any of the following records are changed, the error is not triggered:
* removal of any of the records with priority == 10
* change of any priority == 5 to priority == 10
If there's only one record with priority == 0 and one with priority == 5, all the others may have priority == 10 and it'll work properly.
I couldn't understand the complete logic, though.
A coworker suggested the issue may be related to the way compareTo(SrvRecord other) is implemented in DnsSRVLocator class. @Override public int compareTo(SrvRecord other) { ... if (weight == 0 && other.weight != 0) { return -1; } if (weight != 0) { return 1; } return 0; } He said that when weight is different from 0, it's not possible to correctly order the records, raising an exception. I modified my zone file setting weight to 0 on every SRV record and the exception wasn't triggered. *** Bug 1034798 has been marked as a duplicate of this bug. *** Closing - RHEV 3.3 Released Closing - RHEV 3.3 Released |