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

Eviction <memory> attribute when-full does not work as expected

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 11.0.3.Final, 12.0.0.Final
    • Core
    • None
    • Hide

      define a cache with <memory max-count=2 when-full=".....">
      use a persistence or not as described and add entries

      Show
      define a cache with <memory max-count=2 when-full="....."> use a persistence or not as described and add entries
    • Documentation (Ref Guide, User Guide, etc.), User Experience
    • Undefined

      Eviction can be configured with the <memory> element and use when-full of NONE|MANUAL|REMOVE|EXCEPTION

      From XSD:
      NONE - Do not evict entries. ...
      MANUAL Manually evict entries. This strategy is the same as NONE but does not log errors if you enable passivation without eviction.
      REMOVE - Automatically evict older entries to make space for new entries. By default REMOVE is always used when you define a size for the data container unless you configure the EXCEPTION strategy.
      EXCEPTION Do not evict entries. If the data container reaches the maximum size, exceptions occur for requests to create new entries.

      With a store (here RocksDB) no matter whether passivation is enabled or not
      EXCEPTION will NOT throw an Exception but does not evict any entry, the entries can be added with the drawback that the statistic is wrong num-in-mem=X current-num-entries=X total-entires=0
      -> without a store the Exception is thrown as expected

      With REMOVE the eviction will work as expected

      NONE|MANUAL will default always to REMOVE and not show the behavior in its description no matter whether a store and passivation is used.

      NONE and MANUAL seems useless and lead confusion.

              Unassigned Unassigned
              rhn-support-wfink Wolf Fink
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: