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

Default metadata not merged for DecoratedCache operations

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 8.1.0.Beta1
    • 8.1.0.Alpha1
    • None
    • None
    • Hide

      Add the expiration element for a cache and access it via HotRod:

      remoteCache.putIfAbsent("aKey", "aValue");
      Thread.sleep(2000);
      System.out.println("value after 2sec="+remoteCache.get("aKey"));

      Show
      Add the expiration element for a cache and access it via HotRod: remoteCache.putIfAbsent("aKey", "aValue"); Thread.sleep(2000); System.out.println("value after 2sec="+remoteCache.get("aKey"));

      If the ISPN server cache is configured with expiration like:
      <cache-container name="local" default-cache="default" statistics="true">
      <state-persistence/>
      <local-cache name="default" start="EAGER">
      <locking acquire-timeout="30000" concurrency-level="1000" striping="false"/>
      <transaction mode="NONE"/>
      <expiration lifespan="1000" interval="20000"/>
      </local-cache>

      The entry should automatic expired in 1second after it is added.
      But a client still have the key

      • after 1 sec where it should have been expired
      • after 20 sec where the reaper should have removed it

              rh-ee-galder Galder ZamarreƱo
              rhn-support-wfink Wolf Fink
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: