Github user linwen commented on a diff in the pull request:

    https://github.com/apache/incubator-hawq/pull/1242#discussion_r116961874
  
    --- 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 --
    
    When master RPS doesn't work due to some reason, and hawq begins to talk 
with standby RPS, a warning message should be recorded in log file, so that 
administrators can solve the master RPS problem. elog(LOG, ...) won't expose to 
console(by default, client_min_sessages is NOTICE), but in this switch case, a 
warning should be recorded. 


---
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.
---

Reply via email to