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

MemoryConfiguration.isEvictionEnabled() returns false if size = 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Critical Critical
    • None
    • 9.1.1.Final
    • Configuration, Eviction
    • None

      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

              Unassigned Unassigned
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: