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

Eviction new and legacy attributes should stay in sync

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

            dberinde@redhat.com Dan Berindei (Inactive)
            dberinde@redhat.com Dan Berindei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: