Bug 538088 - [raw-config] Changes made on filesystem to config file take 10 minutes to appear in file mode.
Summary: [raw-config] Changes made on filesystem to config file take 10 minutes to app...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Configuration
Version: unspecified
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: RHQ_RawConfig
TreeView+ depends on / blocked
 
Reported: 2009-11-17 15:49 UTC by Corey Welton
Modified: 2010-08-12 16:56 UTC (History)
1 user (show)

Fixed In Version: 2.4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-08-12 16:56:12 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.