Uploaded image for project: 'Spring XD'
  1. Spring XD
  2. XD-2761

Register only known classes with Kryo in PojoCodec

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Priority: Critical
    • Resolution: Complete
    • Affects Version/s: 1.1 GA
    • Fix Version/s: 1.1.1, 1.2 M1
    • Component/s: Runtime
    • Labels:
      None

      Description

      Currently PojoCodec calls kryo.register(Class<?> type) on every ser/deser invocation. This fails with 1.1 because instances are pooled and a different instance may be used to serialize and deserialize. See https://github.com/EsotericSoftware/kryo#registration. The fix is to not register classes on the fly. Classes serialized by PojoCodec will not be registered by default. This will work but is less efficient. XD should provide an easy way to register types known to be serialized on the MessageBus (passed between modules)

        Attachments

          Activity

            People

            Assignee:
            dturanski David Turanski
            Reporter:
            dturanski David Turanski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: