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

Eviction new and legacy attributes should stay in sync

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 11.0.1.Final
    • 11.0.0.Final
    • Configuration, Core
    • None

      The old-style eviction attributes (storage-type, eviction-strategy, eviction-type, size) are available programmatically both via memory() and via memory().heapConfiguration(), and changes to either the new attributes or to the legacy attributes should update all of them.

      The builder does not expose heapConfiguration(), but parsing a JSON with a legacy configuration (e.g. {"local-cache":{ "memory":{"object":{"size":5000}}}}) will set those attributes directly.

      Additionally, the XSD does not include values OBJECT and BINARY for the storage attribute, but the parser accepts them, and serializing a configuration will sometimes write them in the XML. In theory we can replace OBJECT with HEAP, but we can't do the same trick with BINARY because we don't know the media type in the builder (it depends on the user marshaller). This may change in the future, but it's better if we preserve the actual values for now.

              dberinde@redhat.com Dan Berindei (Inactive)
              dberinde@redhat.com Dan Berindei (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: