From ba67c5bc3542745dc8c821653ab54e1d3b4a800c Mon Sep 17 00:00:00 2001 From: Pavan Deolasee Date: Thu, 18 Feb 2016 15:43:35 +0530 Subject: [PATCH] Increase the timeout for waiting to end query to 1s from existing 20ms. We see that this timeout expires sometime on a loaded machine, leading to other errors. We need to handle that situation better, but for now increase the timeout to 1s to reduce the chances of this happening. --- src/backend/pgxc/pool/execRemote.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/pgxc/pool/execRemote.c b/src/backend/pgxc/pool/execRemote.c index b4431d1e1f..dcc3aeafe2 100644 --- a/src/backend/pgxc/pool/execRemote.c +++ b/src/backend/pgxc/pool/execRemote.c @@ -68,7 +68,7 @@ bool EnforceTwoPhaseCommit = true; * It is better to drop and recreate datanode connection then wait for several * seconds while it being cleaned up when, for example, cancelling query. */ -#define END_QUERY_TIMEOUT 20 +#define END_QUERY_TIMEOUT 1000 typedef struct { -- 2.39.5