-
Notifications
You must be signed in to change notification settings - Fork 54
Description
Currently, we are serialising the statusChanges field to a JSON string before adding it to a Map<String, String> returned from getJobStatus().
This change was made here to ensure that we could serialise Job's statusChanges back to the server component. However, it amounts to serialising JSON via Jackson into the existing Map<String,String> which is then serialised using the management API's (Cassandra based) serializers. This is a very unwieldy solution which we have merged just to get the Reaper side of the work progressing.
We should revise this approach and look to either improve the serialisation framework more generally to handle (a) more deeply nested data structures and (b) enums in collections OR we should look to renovate the serialisation code more generally to use a common framework like Jackson or protobuf.