Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-2206

Query returns nulls if cache entries were removed and transaction is still not commited

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.2.0.Final
    • 5.2.0.Final
    • Embedded Querying
    • None

      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.

              marko.luksa@gmail.com Marko Luksa (Inactive)
              marko.luksa@gmail.com Marko Luksa (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: