Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): / ext-user (S V Pavankumar)
Created: 10/07/2014
Components: Caching
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: CF10 /
Priority/Frequency: Normal / Few users will encounter
Locale/System: ALL / Mac 10 All,Win XP All
Vote Count: 0
Problem:
Method:
set ehcache disk store to some location in ehcache.xml
<diskStore path="C:\work\cf_main\cfusion\cache"/>
configure a cache with disk persistence in ehcache.xml
name="mycache"
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="86400"
timeToLiveSeconds="86400"
overflowToDisk="true"
diskSpoolBufferSizeMB="30"
maxElementsOnDisk="10000000"
diskPersistent="true"
diskExpiryThreadIntervalSeconds="3600"
memoryStoreEvictionPolicy="LRU"
clearOnFlush="true"
statistics="true"
/>
use this cache to store the cached queries
<cfquery name="getArtists" datasource="cfartgallery" CACHEREGION="mycache" cachedWithin="#createTimeSpan(0,1,0,0)#">
SELECT *
from artists
</cfquery>
Run this query the result gets stored in the cache as well as in the cache disk store. stop the server. Go to the directory where your ehcache disk store is configured you will be able to see that cache got persisted.
Start the server and try running this query
1) If request time out is not set query runs indefinitely.
2) If request time out is set will get request timed out exception.
Result:
Expected:
Workaround:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3835765
External Customer Info:
External Company:
External Customer Name:
External Customer Email:
Attachments:
Comments: