[infinispan-issues] [JBoss JIRA] (ISPN-2206) Query returns nulls if cache entries were removed and transaction is still not commited

Marko Lukša (JIRA) jira-events at lists.jboss.org
Thu Aug 16 06:05:17 EDT 2012


Marko Lukša created ISPN-2206:
---------------------------------

             Summary: Query returns nulls if cache entries were removed and transaction is still not commited
                 Key: ISPN-2206
                 URL: https://issues.jboss.org/browse/ISPN-2206
             Project: Infinispan
          Issue Type: Bug
          Components: Querying
    Affects Versions: 5.2.0.ALPHA1
            Reporter: Marko Lukša
            Assignee: Sanne Grinovero


When using indexLocalOnly=true, the Lucene index is updated when the transaction is commited. 

After removing an entry from the cache (and before commiting the transaction), queries will still match the entry, but since the entry is no longer in the cache, the list returned by the query will contain a null value.

This forces clients to always check whether elements of the collection returned by queries are null. 

IMO, Ispan-query should handle this and simply skip the entries that were matched in the index, but are no longer in the cache. 





--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the infinispan-issues mailing list