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

Infinispan cachestores remove entries early when maxIdle used

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.2.6.Final
    • Fix Version/s: None
    • Component/s: Loaders and Stores
    • Environment:

      Linux: debian wheezy
      uname -a: Linux hostname 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2+deb7u2 x86_64 GNU/Linux
      JBoss: 7.1.2.Final
      Embedded cache using infinispan 5.2.6.Final jars included in WAR's WEB-INF/lib directory.

    • Steps to Reproduce:
      Hide

      1. Create an Infinispan cache with a cachestore.
      2. Put and entry in the cache using maxIdle (30 seconds).
      3. Ping the entry regularly with a get before maxIdle times out (every 20 seconds).
      4. Wait maxIdle time from creation (30 seconds after initial entry insertion).
      5. Look at the cache (the cache removed the entry).

      Show
      1. Create an Infinispan cache with a cachestore. 2. Put and entry in the cache using maxIdle (30 seconds). 3. Ping the entry regularly with a get before maxIdle times out (every 20 seconds). 4. Wait maxIdle time from creation (30 seconds after initial entry insertion). 5. Look at the cache (the cache removed the entry).

      Description

      When adding an entry to the cache (embedded), specifying maxIdle... The entry goes into the store, but the store removes the entry when maxIdle time elapses from creation (rather than from last access).

      The cache correctly keeps the entry in memory (unless evicted).

      This leaves the cache and store out of sync.

      I saw this same behavior with both stringKeyedJdbcStore and fileStore.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  william.burns Will Burns
                  Reporter:
                  shadowcreeper Ralph Jennings
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated: