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

MemoryConfiguration.isEvictionEnabled() returns false if size = 0

    Details

    • Type: Bug
    • Status: New (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 9.1.1.Final
    • Fix Version/s: None
    • Component/s: Configuration, Eviction
    • Labels:
      None

      Description

      The documentation for MemoryConfiguration explicitly states that eviction is disabled if size < 0, however, this method returns false if size = 0.

      Configuring MemoryConfigurationBuilder with size(0L) causes evict(...) to log a confusing WARN message:
      WARN: ISPN000419: Eviction of an entry invoked without an explicit eviction strategy for cache foo

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                pferraro Paul Ferraro
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: