[infinispan-issues] [JBoss JIRA] (ISPN-4196) QueryDslIterationTest cleanup takes 30 secods to complete

Martin Gencur (JIRA) issues at jboss.org
Fri Apr 11 12:12:12 EDT 2014


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

Martin Gencur commented on ISPN-4196:
-------------------------------------

So I think the root cause is the following: The clear() operation internally uses _cluster_registry_cache and calls keySet on it. keySet operation creates an invocation context and creates a new local transaction which is added to localTransactions variable for the respective cache. However, the keySet operation is not enlisted in the transaction and so when the transaction commits, the local transaction is not removed from the list. This happens through transaction manager that removes all transactions which have been enlisted in the transaction. Trying to find solution...
                
> QueryDslIterationTest cleanup takes 30 secods to complete
> ---------------------------------------------------------
>
>                 Key: ISPN-4196
>                 URL: https://issues.jboss.org/browse/ISPN-4196
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Embedded Querying
>    Affects Versions: 7.0.0.Alpha1
>            Reporter: Adrian Nistor
>            Assignee: Adrian Nistor
>             Fix For: 7.0.0.Final
>
>
> The cleanup phase of this test is based on Cache.clear() and is very slow , taking about 30 seconds, or at least that's how much we gain if the cache cleanup is removed. Without the cleanup, this test takes about 2.5 seconds, so we need to investigate why Cache.clear() creates a problem here or in general.

--
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