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

Default metadata not merged for DecoratedCache operations

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 8.1.0.Alpha1
    • Fix Version/s: 8.1.0.Beta1
    • Component/s: None
    • Labels:
      None
    • Steps to Reproduce:
      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"));

      Description

      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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  galder.zamarreno Galder ZamarreƱo
                  Reporter:
                  wdfink Wolf-Dieter Fink
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: