Bug 101659

Summary: XML content type loader recreates authoring kit even if nothing has changed
Product: [Retired] Red Hat Enterprise CMS Reporter: Daniel BerrangĂ© <berrange>
Component: otherAssignee: ccm-bugs-list
Status: CLOSED WONTFIX QA Contact: Jon Orris <jorris>
Severity: medium Docs Contact:
Priority: medium    
Version: nightlyKeywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-09-02 17:20:40 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:

Description Daniel Berrangé 2003-08-05 11:25:36 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.9 (X11; Linux i686; U;) Gecko/20030314

Description of problem:
The XML content type loader re-creates the authoring kit on every startup of the
server, even if nothing has changed since the last restart. This imposes a
noticable overhead on startup, of about 9 seconds, out of total startup time of
36 seconds (25%). It should
be made intelligent enough to only drop the authoring kit if it has
changed. To reduce code duplication, this functionality should probably be added
to c.a.cms.installer.ContentTypeSetup & the XML loader refactored to use this
API for actual creation.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Examine contents of authoring_steps & authoring_kits tables
2. Restart a server
3. Examine contents of authoring_steps & authoring_kits tables

Actual Results:  All the object ids are different, indicating authoring kit has
been recreated.

Expected Results:  All the object ids are the same in step 1 & 3, except when
there has been an *actual* change to the Content type XML file.

Additional info:

Comment 1 Daniel Berrangé 2006-09-02 17:20:40 UTC
Closing old tickets