[infinispan-issues] [JBoss JIRA] (ISPN-9466) org.infinispan.query.clustered.QueryBox does not implement eviction for zombie iterators

Gustavo Fernandes (Jira) issues at jboss.org
Wed May 20 10:28:40 EDT 2020


    [ https://issues.redhat.com/browse/ISPN-9466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14107196#comment-14107196 ] 

Gustavo Fernandes commented on ISPN-9466:
-----------------------------------------

The QueryBox component is only used when doing CacheQuery with the LAZY param, such as 
{code:java}
cacheQuery.iterator(new FetchOptions().fetchMode(FetchOptions.FetchMode.LAZY)
{code}

Since lazy iterators only makes sense with distributed Lucene Queries, and CacheQuery is being deprecated in ISPN 11 (replaced by Query that is index agnostic), I am going to close this issue.

> org.infinispan.query.clustered.QueryBox does not implement eviction for zombie iterators
> ----------------------------------------------------------------------------------------
>
>                 Key: ISPN-9466
>                 URL: https://issues.redhat.com/browse/ISPN-9466
>             Project: Infinispan
>          Issue Type: Task
>          Components: Embedded Querying
>            Reporter: Nistor Adrian
>            Assignee: Gustavo Fernandes
>            Priority: Major
>              Labels: query-ispn11
>
> Although the javadoc hints to some eviction mechanism this is not actually implemented.
> A linked list 'ageOrderedQueries' is maintained so that active queries move to the head of the list and the list is limited to 3000 items. Still, there is no mechanism that actually removes the zombie queries from the 'queries' ConcurrentMap.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list