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

Unable to use binary memory eviction with protobuf

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Critical
    • 11.0.11.Final
    • 10.0.1.Final
    • Server
    • None

    Description

      Enabling binary eviction, e.g.:

      <memory>
        <binary strategy="REMOVE" size="134217728" eviction="MEMORY"/>
      </memory>
      

      When storing protobuf based types, throws the following exception:

      15:36:29,859 ERROR [org.infinispan.interceptors.impl.InvocationContextInterceptor] (async-thread--p2-t18) ISPN000136: Error executing command PrepareCommand on Cache 'devices', writing keys []: java.lang.IllegalArgumentException: Size of Class class org.infinispan.query.remote.impl.indexing.ProtobufValueWrapper cannot be determined using given entry size calculator :class org.infinispan.container.entries.PrimitiveEntrySizeCalculator
      

      As protobuf produces a binary representation of the data, it is possible to calculate a size for that object.

      Attachments

        Issue Links

          Activity

            People

              wburns@redhat.com Will Burns
              jreimann-2 Jens Reimann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: