[infinispan-issues] [JBoss JIRA] (ISPN-2321) Memory leak in CacheStoreInterceptor (cache with LockingMode.PESSIMISTIC)

Mircea Markus (JIRA) jira-events at lists.jboss.org
Wed Sep 19 11:36:34 EDT 2012


    [ https://issues.jboss.org/browse/ISPN-2321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12719985#comment-12719985 ] 

Mircea Markus commented on ISPN-2321:
-------------------------------------

With 1PC transaction don't cache the prepares and also update txStores in the prepare instead of caching them till the commit.
                
> Memory leak in CacheStoreInterceptor (cache with LockingMode.PESSIMISTIC)
> -------------------------------------------------------------------------
>
>                 Key: ISPN-2321
>                 URL: https://issues.jboss.org/browse/ISPN-2321
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Loaders and Stores
>    Affects Versions: 5.1.6.FINAL, 5.2.0.Alpha3
>            Reporter: Carsten Lohmann
>            Assignee: Mircea Markus
>              Labels: jdg6
>             Fix For: 5.2.0.Alpha4, 5.2.0.Final
>
>         Attachments: NoTxLeakInCacheStoreInterceptorTest.java
>
>
> We noticed a memory leak in CacheStoreInterceptor where the "txStores" and "preparingTxs" maps get not cleaned up after a transaction is completed and org.infinispan.transaction.xa.GlobalTransaction objects accumulate in these maps.
> This occurs in connection with transactional caches with pessimistic locking.
> See attached test case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the infinispan-issues mailing list