[infinispan-issues] [JBoss JIRA] (ISPN-6022) Unable to query cache when data is preloaded via AdvancedCacheLoader#process

Dan Siviter (JIRA) issues at jboss.org
Thu Dec 10 10:08:00 EST 2015


     [ https://issues.jboss.org/browse/ISPN-6022?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Siviter updated ISPN-6022:
------------------------------
    Description: 
When preloading from a {{AdvancedCacheLoader}} the index doesn't get updated. Therefore it is only possible to query items that have been put into the cache. I am able to get preloaded items from the cache using their key which leads me to think the index is never built on pre-load.

I've seen no implicit rebuilding of caches in any of the existing {{AdvancedCacheLoader#process(...)}} which leads me to think this will not work with any of them.

I've verified this reindexing using {{searchManager.getMassIndexer().start()}} and the query will then return results.

  was:
When preloading from a {{AdvancedCacheLoader}} the index doesn't get updated. Therefore it is only possible to query items that have been put into the cache. I am able to get preloaded items from the cache using their key which leads me to think the index is never built on pre-load.

I've seen no implicit rebuilding of caches in any of the existing {{AdvancedCacheLoader#process(...)}} which leads me to think this will not work with any of them.



> Unable to query cache when data is preloaded via AdvancedCacheLoader#process
> ----------------------------------------------------------------------------
>
>                 Key: ISPN-6022
>                 URL: https://issues.jboss.org/browse/ISPN-6022
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Embedded Querying, Loaders and Stores
>    Affects Versions: 8.1.0.Final
>            Reporter: Dan Siviter
>
> When preloading from a {{AdvancedCacheLoader}} the index doesn't get updated. Therefore it is only possible to query items that have been put into the cache. I am able to get preloaded items from the cache using their key which leads me to think the index is never built on pre-load.
> I've seen no implicit rebuilding of caches in any of the existing {{AdvancedCacheLoader#process(...)}} which leads me to think this will not work with any of them.
> I've verified this reindexing using {{searchManager.getMassIndexer().start()}} and the query will then return results.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the infinispan-issues mailing list