Jackie-Jiang commented on code in PR #11608: URL: https://github.com/apache/pinot/pull/11608#discussion_r1348302897
########## 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: The json string is encoded as the value field of the top level json, so parsing the json twice should be able to extract it. See the code example above -- 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