hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject incubator-hawq git commit: HAWQ-504. Crash when WALSendServer and standby connection timeout
Date Wed, 09 Mar 2016 03:42:30 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 5cfa2ef8e -> 2a694fc2c


HAWQ-504. Crash when WALSendServer and standby connection timeout


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/2a694fc2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/2a694fc2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/2a694fc2

Branch: refs/heads/master
Commit: 2a694fc2cce93791662f2ac058ccbdf0188a00d3
Parents: 5cfa2ef
Author: Ming LI <mli@pivotal.io>
Authored: Wed Mar 9 11:13:19 2016 +0800
Committer: Ming LI <mli@pivotal.io>
Committed: Wed Mar 9 11:17:14 2016 +0800

----------------------------------------------------------------------
 src/backend/postmaster/walsendserver.c | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/2a694fc2/src/backend/postmaster/walsendserver.c
----------------------------------------------------------------------
diff --git a/src/backend/postmaster/walsendserver.c b/src/backend/postmaster/walsendserver.c
index 3fe5982..6f8d1ab 100644
--- a/src/backend/postmaster/walsendserver.c
+++ b/src/backend/postmaster/walsendserver.c
@@ -324,6 +324,12 @@ void
 WalSendServerGetClientTimeout(struct timeval *timeout)
 {
 	ServiceGetClientTimeout(&WalSendServer_ServiceConfig, timeout);
+
+	// Here we need to set client timeout greater than the server timeout, otherwise this timeout
+	// will be triggered before the connection between WalSendServer and standby timeout trigger,
+	// it will lead to the QD process report FATAL, and all processes on master restart.
+	timeout->tv_sec *= 2;
+	timeout->tv_usec *= 2;
 }
 
 /*


Mime
View raw message