Github user paul-guo- commented on a diff in the pull request:
https://github.com/apache/incubator-hawq/pull/1242#discussion_r116960903
--- Diff: src/backend/libpq/rangerrest.c ---
@@ -453,23 +453,30 @@ static int call_ranger_rest(CURL_HANDLE curl_handle,
const char* request)
{
if (retry > 1)
{
- elog(WARNING, "ranger plugin service from
http://%s:%d/rps is unavailable : %s, try another http://%s:%d/rps\n",
+ /* Don't expose this warning message to client,
just record in log.
+ * The value of whereToSendOutput is
DestRemote, so set it to DestNone
+ * and set back after write a warning message
in log file.
+ */
+ CommandDest commandDest = whereToSendOutput;
+ whereToSendOutput = DestNone;
+ elog(WARNING, "ranger plugin service from
http://%s:%d/rps is unavailable : %s, "
+ "trying ranger plugin service
at http://%s:%d/rps\n",
--- End diff --
If so, why not just remove the code and add comments here? Does elog(LOG,
...) possibly expose this to users?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---