Bug 727869

Summary: Configuration History times out when there are many resources.
Product: [Other] RHQ Project Reporter: Robert Buck <rbuck>
Component: Core ServerAssignee: Ian Springer <ian.springer>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: urgent    
Version: 4.1CC: ccrouch, hrupp, ian.springer, skondkar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-07 19:32:07 UTC Type: ---
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: 717358, 722548, 730796    
Attachments:
Description Flags
fix none

Description Robert Buck 2011-08-03 13:21:12 UTC
For example, in the performance environment, it took 15 seconds to show the configuration history when there were many resources inventoried.

Comment 1 Ian Springer 2011-08-29 18:39:40 UTC
Created attachment 520448 [details]
fix

Comment 2 Ian Springer 2011-08-29 18:44:29 UTC
The attached patch fixes this issue by making AbstractConfigurationUpdate.configuration LAZY, rather than EAGER, fetch. With the change, the subsystem config history list view now loads in around 3 seconds. Since the change required significant refactoring of code which expected the configuration field to be eagerly fetched, we will hold off committing it until after the imminent RHQ 4.1 and JON 3.0 Beta releases.

Note, I tested that all of the config-related views in the GUI still work and that all domain and server-jar unit tests still pass. I still need to test:

1) CLI integration tests still pass
2) resource-config-changed alerts still work

Comment 3 Ian Springer 2011-09-15 18:07:34 UTC
Note: Make sure to provide detailed test steps for QE.

Comment 4 Ian Springer 2011-10-03 21:20:32 UTC
The patch has been merged in - [master 8368e38].

QE, please test that the following views load quickly and do not have any regressions:

1) resource Configuration > History subtab - list and detail views
2) resource Inventory > Connection Settings subtab
3) resource Inventory > Connection Settings History subtab
4) group Configuration > History subtab - list and detail views
5) group Inventory > Connection Settings subtab
6) group Inventory > Connection Settings History subtab
7) Reports > Configuration History subsystem view

Make sure each of the views contains at least one history item so you can test that it is loaded correctly.

Please also test that resource-configuration-changed alerts still work correctly.

Comment 5 Sunil Kondkar 2011-10-04 13:05:41 UTC
While verifying the resource Inventory > Connection Settings History subtab, encountered an exception in server log. Filed a separate bug:

https://bugzilla.redhat.com/show_bug.cgi?id=743271

Comment 6 Mike Foley 2012-02-07 19:32:07 UTC
marking VERIFIED BZs to CLOSED/CURRENTRELEASE

Comment 7 Mike Foley 2012-02-07 19:32:07 UTC
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE