ArnavBalyan commented on code in PR #11608:
URL: https://github.com/apache/pinot/pull/11608#discussion_r1362608550
##########
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:
Got it thanks, I did this, it seems the 6 tests fail. The result is wrapped
in "", so the `JsonUtils.stringToJsonNode` fails parsing it, to fix the test we
would have to extract the value and then parse it. What do you think. Thanks!
--
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]