[jboss-jira] [JBoss JIRA] Closed: (JBCACHE-739) Exception in a CacheLoader throws ChainingCacheLoader calling method and prevent the call to the next CacheLoaders

Manik Surtani (JIRA) jira-events at jboss.com
Mon Oct 23 12:44:41 EDT 2006


     [ http://jira.jboss.com/jira/browse/JBCACHE-739?page=all ]

Manik Surtani closed JBCACHE-739.
---------------------------------

    Resolution: Rejected

Not a bug.

The chaining cache loader should throw the exception the moment any of the underlying CLs throws one.  There is no point continuing to write to the CLs if even one barfs.  Yes, this means the CLs will be inconsistent, but that will still be the case even if writes continue on down the chain.




> Exception in a CacheLoader throws ChainingCacheLoader calling method and prevent the call to the next CacheLoaders 
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBCACHE-739
>                 URL: http://jira.jboss.com/jira/browse/JBCACHE-739
>             Project: JBoss Cache
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Cache loaders
>    Affects Versions: 1.4.0
>            Reporter: shimi k
>         Assigned To: Manik Surtani
>             Fix For: 1.4.0.SP2, 2.0.0
>
>
> All the delegate methods in ChainingCacheLoader throws Exceptions. Each one of the methods iterates on all the configured Cacheloader. 
> public void put(Fqn name, Map attributes) throws Exception
>     {
>         Iterator i = writeCacheLoaders.iterator();
>         while (i.hasNext())
>         {
>             CacheLoader l = (CacheLoader) i.next();
>             l.put(name, attributes); 
>         }
>     }
> Since the methods throws an Exception, Exception in one of the CacheLoaders will throw the thread out of the method. If the Exception will happen before the last CacheLoader, the ChainingCacheLoader will not call the other CachLoaders.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list