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

FunctionalMapImpl.create does not inherit cache settings for Expiration and Eviction

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • 9.1.7.Final, 9.3.1.Final
    • None
    • None
    • Hide

      Setup cache with expiration

              <local-cache name="test-cache">
                  <expiration lifespan="10000"/>
                  <persistence passivation="false">
                      <rdb:rocksdb-store path="rocksdb/data/"
                                         block-size="4096" cache-size="100">
                          <rdb:expiration path="rocksdb/expired/" queue-size="10000"/>
                      </rdb:rocksdb-store>
                  </persistence>    
              </local-cache>
      

      Setup a readwrite map

      FunctionalMapImpl<String, String> functionalMap = FunctionalMapImpl.create(cache.getAdvancedCache());
              readWriteMap = ReadWriteMapImpl.create(functionalMap);
      
      Show
      Setup cache with expiration <local-cache name= "test-cache" > <expiration lifespan= "10000" /> <persistence passivation= "false" > <rdb:rocksdb-store path= "rocksdb/data/" block-size= "4096" cache-size= "100" > <rdb:expiration path= "rocksdb/expired/" queue-size= "10000" /> </rdb:rocksdb-store> </persistence> </local-cache> Setup a readwrite map FunctionalMapImpl< String , String > functionalMap = FunctionalMapImpl.create(cache.getAdvancedCache()); readWriteMap = ReadWriteMapImpl.create(functionalMap);

    Description

      http://infinispan.org/docs/stable/user_guide/user_guide.html#functional_map_api

      FunctionalMapImpl.create() does not inherit cache settings for Expiration and Eviction.

      Because of this, when adding the entries via the readwritemap, entries never expire.

      Attachments

        Activity

          People

            rh-ee-galder Galder ZamarreƱo
            benjamin.gardner Ben Gardner (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: