pkuwm opened a new issue #1125:
URL: https://github.com/apache/helix/issues/1125


   Maintenance history is json serialized to be stored in znode. It doesn't 
seem necessary to serialize to json? Because: it adds backslashes to the json 
string as it is double json serialized in response. 
   
   ```
   {
     "maintenanceHistory" : [ 
"{\"DATE\":\"2020-06-06-12:03:24\",\"TIMESTAMP\":\"1591445004332\",\"OPERATION_TYPE\":\"ENTER\",\"REASON\":\"Restart
 Offline Instances is restarting hosts:
   ```
   
   Code:
   `    maintenanceHistoryList.add(new 
ObjectMapper().writeValueAsString(maintenanceEntry));
   `
   
   Shall we just write the map string to znode, which would make it easier to 
read in json response/web ui for maintenance history?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to