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

ProtoStream adapters should not be added to the persistence and global contexts

    XMLWordPrintable

Details

    Description

      The upgrade PR to ProtoStream 4.4.0.Beta3 made it so the protostream-type ProtoAdapters were registered with the GLOBAL, PERSISTENCE & USER serialization contexts. This was a mistake, they should only be registered with the USER context.

      Registering the Adapters with the PERSISTENCE context means that any marshalling performed by the PersistenceMarshaller for one of these ProtoAdapter types will not be delegated to the user marshaller. For example, if the user has a BigInteger key, this will always be marshalled with ProtoStream even if the user has explicitly configured the JavaSerializationMarshaller.

      Attachments

        Activity

          People

            remerson@redhat.com Ryan Emerson
            remerson@redhat.com Ryan Emerson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: