soumitra-st commented on code in PR #11136: URL: https://github.com/apache/pinot/pull/11136#discussion_r1268608762
########## pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotQueryResource.java: ########## @@ -390,7 +396,9 @@ public String sendPostRaw(String urlStr, String requestStr, Map<String, String> /*if (LOG.isInfoEnabled()){ LOGGER.info("The http response code is " + responseCode); }*/ - if (responseCode != HttpURLConnection.HTTP_OK) { + if (responseCode == HttpURLConnection.HTTP_FORBIDDEN) { Review Comment: output stream is used to send the payload, input and error streams are read after checking the status code. The logic looks correct. -- 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