[infinispan-dev] Fwd: Am I missing something ?
Philippe Van Dyck
pvdyck at gmail.com
Thu Apr 22 07:54:32 EDT 2010
Excellent job, thanks Manik.
Phil
On Thu, Apr 22, 2010 at 12:52 PM, Manik Surtani <manik at jboss.org> wrote:
> Also I've updated the comments/method names to be more accurate and less
> misleading:
>
> http://fisheye.jboss.org/changelog/Infinispan/trunk/core?cs=1714
>
> <http://fisheye.jboss.org/changelog/Infinispan/trunk/core?cs=1714>
> On 22 Apr 2010, at 10:41, Manik Surtani wrote:
>
> Phil,
>
> Sorry if it took me a while to get back to this. This isn't really a
> problem - as proved by this unit test:
>
>
> http://fisheye.jboss.org/browse/Infinispan/trunk/core/src/test/java/org/infinispan/loaders/CacheLoaderFunctionalTest.java
> - see testLoadingToMemory()
>
> The explanation is a very poorly named internal method -
> CacheLoaderInterceptor.putLoadedEntryInContainer() - which is misleading.
> This method is not supposed to store the entry but simply to notify
> listeners. (Perhaps it did store the entry once upon a time, but has since
> then been refactored).
>
> The actual storage of the entry happens when the entry is wrapped for
> writing (CacheLoaderInterceptor line 141) which stores the entry in the
> caller's invocation context. The actual flushing to memory storage happens
> in the LockingInterceptor (in cleanupLocks()) when the call returns and
> locks are released. Loading from a CacheStore will inevitably involve
> acquiring write locks on the in-memory data structure so this is the logical
> place to flush writes and release locks.
>
> On 20 Apr 2010, at 15:43, Philippe Van Dyck wrote:
>
> Done, https://jira.jboss.org/jira/browse/ISPN-407
>
> <https://jira.jboss.org/jira/browse/ISPN-407>Cheers,
>
> Phil
>
> P.S.: I sometimes wonder if anyone actually use Infinispan ;-)
>
>
> Keep wondering. :)
>
> Cheers
> Manik
> --
> Manik Surtani
> manik at jboss.org
> Lead, Infinispan
> Lead, JBoss Cache
> http://www.infinispan.org
> http://www.jbosscache.org
>
>
>
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>
>
> --
> Manik Surtani
> manik at jboss.org
> Lead, Infinispan
> Lead, JBoss Cache
> http://www.infinispan.org
> http://www.jbosscache.org
>
>
>
>
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/infinispan-dev/attachments/20100422/21f303f0/attachment-0001.html
More information about the infinispan-dev
mailing list