[ http://jira.jboss.com/jira/browse/JBCACHE-17?page=history ]
Bela Ban resolved JBCACHE-17:
-----------------------------
Resolution: Done
Fix Version: 1.2.1
> No synchronization between CreateIfNotExistsInterceptor and LockInterceptor
> ---------------------------------------------------------------------------
>
> Key: JBCACHE-17
> URL: http://jira.jboss.com/jira/browse/JBCACHE-17
> Project: JBoss Cache
> Type: Bug
> Versions: 1.2
> Reporter: Bela Ban
> Assignee: Bela Ban
> Fix For: 1.2.1
>
> Original Estimate: 3 days
> Remaining: 3 days
>
> Probable cause:
> - Thread-1 does a put()
> - Thread-2 does an evict()
> - Thread-1 gets to run first, CreateIfNotExistsInterceptor creates a node
> - Context switch to Thread-2 before Thread-1 can proceed into LockInterceptor
> and lock the just created node
> - Thread-2 proceeds to LockInterceptor, locks and removes the node
> - Thread-1 doesn't find the node it just created and fails in an assertion
> Reason: no locking between CreateIfNotExistsInterceptor and LockInterceptor
> Test: org.jboss.test.cache.test.eviction.LRUPolicyUnitTestCase (which
> currently fails)
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development