Jackie-Jiang commented on code in PR #11608: URL: https://github.com/apache/pinot/pull/11608#discussion_r1346568856
########## pinot-integration-tests/src/test/java/org/apache/pinot/integration/tests/BaseClusterIntegrationTestSet.java: ########## @@ -645,9 +645,11 @@ public String reloadTableAndValidateResponse(String tableName, TableType tableTy throws IOException { String response = sendPostRequest(_controllerRequestURLBuilder.forTableReload(tableName, tableType, forceDownload), null); + response = StringEscapeUtils.unescapeJava(response); String tableNameWithType = TableNameBuilder.forType(tableType).tableNameWithType(tableName); JsonNode tableLevelDetails = - JsonUtils.stringToJsonNode(StringEscapeUtils.unescapeJava(response.split(": ")[1])).get(tableNameWithType); + JsonUtils.stringToJsonNode(response.substring( Review Comment: This is very hard to understand. I think we might need to parse twice? Something like: ``` JsonNode responseJson = JsonUtils.stringToJsonNode(response); JsonNode tableLevelDetails = JsonUtils.stringToJsonNode(responseJson.get("status").asText()).get(tableNameWithType); ``` -- 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. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org