Github user linwen commented on a diff in the pull request:
https://github.com/apache/incubator-hawq/pull/1241#discussion_r116679611
--- Diff: src/backend/libpq/rangerrest.c ---
@@ -464,6 +466,11 @@ static int call_ranger_rest(CURL_HANDLE curl_handle,
const char* request)
}
else
{
+ if (switchToMaster)
+ {
+ /* master's RPS has recovered, switch from
standby's RPS to master's RPS */
+ elog(NOTICE, "switch from standby's RPS to
master's RPS");
--- End diff --
Thanks! You are right.
If switch to master and failed again, then talk with standby success, this
notice message is also printed, a condition should be added.
---
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.
---