Github user yanghua commented on the issue:

    https://github.com/apache/flink/pull/5573
  
    Hi @aljoscha and @tillrohrmann  I have tried to put `Map<String, 
SerializedValue<Object>>` into `JobAccumulatorsInfo` with two ways : 
    *  a `@JsonProperty` 
    * marked with `@JsonIgnore` and provide getter and setter
    
    and the two ways both failed with different reason: 
    
    * first way : throw a exception : `SerializedValue` no suitable constructor;
    * second way : the setted object will be ignore by 
`HandlerUtils#sendResponse`
    
    In `JobAccumulatorsHandler#handleRequest` I can not return `Map<String, 
SerializedValue<Object>>` directly, because this method's result type must 
extends `ResponseBody`.


---

Reply via email to