]
Manik Surtani updated JBCACHE-1172:
-----------------------------------
Fix Version/s: 2.1.0.BETA1
CacheLoaderInterceptor doesn't load data for Node.getKeys() or
Node.getData()
-----------------------------------------------------------------------------
Key: JBCACHE-1172
URL:
http://jira.jboss.com/jira/browse/JBCACHE-1172
Project: JBoss Cache
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Cache loaders
Affects Versions: 2.0.0.GA
Reporter: Brian Stansberry
Assigned To: Brian Stansberry
Fix For: 2.1.0.GA, 2.1.0.BETA1
CacheLoaderInterceptor.mustLoad always returns false if there is no data key associated
with the MethodCall. Effect is calls for CacheImpl._getKeys and _getData don't
trigger a load from the cache loader.
Added tests testKeyKeys() and testGetData() to CacheLoaderTestsBase to show the issue.
Solution is to add a boolean 'allKeys' variable to CacheLoaderInterceptor.invoke.
Set it to true if the MethodCall is _getKeys or _getData. Pass the value through to
mustLoad, and if true load the data if Node.isDataLoaded returns false.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: