Bug 1337995

Summary: REST fetch of groups doesn't scale
Product: [Other] RHQ Project Reporter: Jay Shaughnessy <jshaughn>
Component: RESTAssignee: Jay Shaughnessy <jshaughn>
Status: ON_DEV --- QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.13CC: bkramer, loleary
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1339301    

Description Jay Shaughnessy 2016-05-20 16:22:56 UTC
Fetching groups via REST does not scale.  This is due to the code always fetching all implicit and explicit resources for the fetched groups.

AbstractRestBean.fillGroup() is the problem, it pulls in a bunch of lazy-load data, most notably, all of the group's resources.

Note that fillGroup is used in some other rest services as well.

To recreate just rhqhost:7080/rest/group.html, as the group membership grows so will the resources consumed, until it falls over.

Comment 1 Jay Shaughnessy 2016-05-20 18:42:41 UTC
PR sent: https://github.com/rhq-project/rhq/pull/255