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

Infinispan cache index not loading initial data

    XMLWordPrintable

Details

    • Hide

      1. Start up a cache with a store (no data need be in the store yet – use passivation="false" to ensure that all data goes into the store immediately).
      2. Add entries into the cache (add data to the store).
      3. Make sure the store now has data (you should be able to query your cache and get results back at this point).
      4. Stop the cache.
      5. Start the cache (this should preload the stored entries into the cache).
      6. At this point you should be able to "get" entries from the cache if you know their IDs, but querying the cache will return an empty list of results.

      Show
      1. Start up a cache with a store (no data need be in the store yet – use passivation="false" to ensure that all data goes into the store immediately). 2. Add entries into the cache (add data to the store). 3. Make sure the store now has data (you should be able to query your cache and get results back at this point). 4. Stop the cache. 5. Start the cache (this should preload the stored entries into the cache). 6. At this point you should be able to "get" entries from the cache if you know their IDs, but querying the cache will return an empty list of results.

    Description

      If you create a cache with an existing store to preload data from, the data is available to the cache (get and keySet works) but not to the index (no cache queries work).

      Only entries put into the cache after it starts up can be seen by the index.

      Attachments

        Activity

          People

            sgrinove Sanne Grinovero
            shadowcreeper_jira Ralph Jennings (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: