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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]