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

Issues with references to 'eviction' in the 9.4 user guide

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • 9.4.20.Final
    • Documentation
    • None
    • Documentation (Ref Guide, User Guide, etc.)
    • Undefined

    Description

      There is some ambiguity around the use of the term "eviction" in the 9.4 guide which may refer to the concept of eviction (sometimes written as "eviction/expiration") or else to a specific set of properties which are deprecated.

      The configuration guide retains several references to the '.eviction.' properties (without noting they are deprecated):

      • hibernate.cache.infinispan.something.eviction.strategy
      • hibernate.cache.infinispan.something.eviction.max_entries
      • <property name="hibernate.cache.infinispan.entity.eviction.strategy" value= "LRU"/>
      • <property name="hibernate.cache.infinispan.entity.eviction.max_entries" value= "5000"/>
      • <property name="hibernate.cache.infinispan.com.acme.Person.eviction.strategy" value= "LIRS"/>
      • <property name="hibernate.cache.infinispan.war_or_ear_name#unit_name.com.acme.Person.eviction.strategy" value= "LIRS"/>

      The reference guide for 'eviction' states:

      The cache eviction configuration.
      DEPRECATED: please use memory element instead
      ...
      

      Also, in the configuration guide is a reference to an eviction property which is actually an expiration property (I believe the correct property name whould be hibernate.cache.infinispan.query.expiration.wake_up_interval).

      • <property name="hibernate.cache.infinispan.entity.eviction.wake_up_interval" value= "2000"/>

      There are some cases (e.g. in 24.5.2) where use of the term "eviction" might refer to the concept rather than the properties but it isn't very clear:

      Entities and collections query caches are configured with the following eviction settings:
      * Eviction wake up interval is 5 seconds.
      * Max number of entries are 10,000.
      * Max idle time before expiration is 100 seconds.
      * Default eviction algorithm is LRU, least recently used.
      

      Where the eviction properties are meant (e.g. "Max number of entries" is probably the eviction property which is deprecated) changes might be appropriate as these should not be used now (the memory size properties are preferred). And it is somewhat confusing to reference "Eviction wake up interval" when it is actually an expiration property.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-sfikes Stephen Fikes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: