DefaultSerializerRegistryTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fix performance regression in test execution

Regression was caused by removing support for class hierarchies in SerializerRegistry as worker protocol

for test execution relies on class hierarchies due to using interfaces and plain Object.class types.

Having multiple SerializerRegistry instances registered that support full class hierarchies causes trouble with

protocols using Object.class.

This was removed due to worker processes hanging when introducing new worker logging infrastructure.

- fix serialisation of test events to use custom serializer again instead of java serialisation

- fixed by explicitly setting class matching strategy in DefaultSerializerRegistry.

- remove Serializable interface from test event classes to avoid this kind of regression in the future

    • -2
    • +4
    ./DefaultSerializerRegistryTest.groovy
  1. … 9 more files in changeset.
Update DefaultSerializerRegistryTest to reflect earlier changes / remove @Ignore

    • -6
    • +2
    ./DefaultSerializerRegistryTest.groovy
Redirect LogEvent and StyledOutputEvent from worker processes to server

* use custom serializer

* Added test coverage

* TODO fix WorkerProcessIntegrationTest:workerProcessStdOutAndStdInIsForwardedToThisProcess

    • -0
    • +3
    ./DefaultSerializerRegistryTest.groovy
  1. … 16 more files in changeset.
Allow multiple `SerializerRegistry` instances to be associated with an `ObjectConnection`, to allow different strategies to be used for different kinds of messages sent over the connection.

    • -0
    • +18
    ./DefaultSerializerRegistryTest.groovy
  1. … 6 more files in changeset.
Reworked some of the internals of `DefaultSerializerRegistry`.

    • -0
    • +28
    ./DefaultSerializerRegistryTest.groovy
  1. … 2 more files in changeset.
Changed the contract of `SerializerRegistry` to allow a `Serializer` for any type to be created, rather than just the base type.

    • -10
    • +11
    ./DefaultSerializerRegistryTest.groovy
  1. … 10 more files in changeset.
Added SerializerRegistry.useJavaSerialization() to allow Java serialization to be used for certain types.

    • -1
    • +48
    ./DefaultSerializerRegistryTest.groovy
  1. … 3 more files in changeset.
Renamed package o.g.messaging.serialize to o.g.internal.serialize.

    • -0
    • +92
    ./DefaultSerializerRegistryTest.groovy
  1. … 171 more files in changeset.