Branch: refs/heads/release/jon3.3.x
Home:
https://github.com/rhq-project/rhq
Commit: c99d2ddbee245b59d0d52c60f903662e1be480ca
https://github.com/rhq-project/rhq/commit/c99d2ddbee245b59d0d52c60f903662...
Author: Jay Shaughnessy <jshaughn(a)redhat.com>
Date: 2015-12-04 (Fri, 04 Dec 2015)
Changed paths:
M
modules/enterprise/server/jar/src/main/java/org/rhq/enterprise/server/resource/group/definition/GroupDefinitionManagerBean.java
Log Message:
-----------
BZ 1187680 : Error recalculating DynaGroups due to ResourceGroupAlreadyExistsException
In a rare case a groupBy expression can generates multiple groupByClause strings
differing
only in case. Group names are [correctly] case insensitive and groupBy [correctly] is not.
For example
'groupby resource.name' can cause this issue with two resources with the same
name, ignoring case, like
'CPU' and 'cpu'. In this situation we need to consolidate results into
one dyna-group, otherwise
we'll get naming conflicts in the generated groups. So, merge results where the
groupByClause is equal,
ignoring case.