Description
When peakMemoryMetrics in ExecutorSummary is Option.empty, then the ExecutorMetricsJsonSerializer#serialize method does not execute the jsonGenerator.writeObject method. This causes the json to be generated with peakMemoryMetrics key added to the serialized string, but no corresponding value.
This causes an error to be thrown when it is the next key attributes turn to be added to the json:
com.fasterxml.jackson.core.JsonGenerationException: Can not write a field name, expecting a value.
{{}}
{{}}