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

Can't retrieve evicted entries from FileCacheStore

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • None
    • None
    • None

    Description

      When using this configuration for the latest (6.0.0-SNAPSHOT) infinispan-server:

      <subsystem xmlns="urn:infinispan:server:core:5.3" default-cache-container="local">
                  <cache-container name="local" default-cache="default">
                      <local-cache name="default" start="EAGER">
                          <locking isolation="NONE" acquire-timeout="30000" concurrency-level="1000" striping="false"/>
                          <transaction mode="NONE"/>
                          <eviction strategy="LRU" max-entries="5"/>
                          <file-store passivation="true" path="dc" purge="true" shared="false"/>
                      </local-cache>
                  </cache-container>
              </subsystem>
      

      and running this code:

      for (int i = 0; i < 6; i++) {
          cache.put("k" + i, "v" + i);
      }
      for (int i = 0; i < 6; i++) {
          System.out.println("k" + i + ": " + cache.get("k" + i));
      }
      

      I'm getting (reproducibly):

      k0: null
      k1: v1
      k2: v2
      k3: null
      k4: v4
      k5: v5

      The directory ${server}/standalone/data/dc/default/ contains 2 files (with v0 and v3).
      Server trace log attached.

      Attachments

        Activity

          People

            rh-ee-galder Galder ZamarreƱo
            jmarkos Jakub Markos (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: