Bug 538088

Summary: [raw-config] Changes made on filesystem to config file take 10 minutes to appear in file mode.
Product: [Other] RHQ Project Reporter: Corey Welton <cwelton>
Component: ConfigurationAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: jsanda
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-12 16:56:12 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: 538114    

Description Corey Welton 2009-11-17 15:49:54 UTC
Description of problem:
When making a change to a config file via manual edit on the file system, the changes appear right away in the structured view on the webui.  However, they take 10 minutes or so to show up in files mode.

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


How reproducible:
Every time.

Steps to Reproduce:
1. Edit /tmp/raw-config-test/structured-and-raw-test-1.txt ; change "x=1" to "x=10000"
2. $platform > Structured and Raw Server > Structured mode:  Observe immediate change for the value of 'x'
3. Switch to files mode.  Observe values of 'x'
  
Actual results:
value of 'x' does not not immediately change in files mode, as it does for structured mode.  10 minutes later, it does appear to eventually show up.

Expected results:
Data parity between the two views.

Additional info:

Comment 1 John Sanda 2009-12-15 03:44:54 UTC
At some point view.xhtml was modified to reference the managed backing bean, ExistingResourceConfigurationUIBean, which has a session scope. The result of this is that external updates were not getting detected immediately since they were getting cached for the duration of the session. 

I modified view.xhtml so that it refers to ExistingResourceConfigurationViewUIBean, which has a request scope. With a request scope, the latest configuration is fetched for each request.

The commit hash for this fix is,

cb18055cfd528342fda2ddeed570ef5b15fd4183

Comment 2 Preethi Thomas 2010-01-05 16:01:09 UTC
verified in raw-config branch.
moving to on_qa to verify in master.

Comment 3 Preethi Thomas 2010-01-07 14:09:20 UTC
This has been resolved.
verified in master build
http://10.16.120.159:7080/
changes made on the file system appears immediately in both files mode & structured mode

Comment 4 Corey Welton 2010-08-12 16:56:12 UTC
Mass-closure of verified bugs against JON.