From: Pavan Deolasee Date: Thu, 18 Feb 2016 10:13:35 +0000 (+0530) Subject: Increase the timeout for waiting to end query to 1s from existing 20ms. X-Git-Tag: XL9_5_R1BETA1~6 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=ba67c5bc3542745dc8c821653ab54e1d3b4a800c;p=postgres-xl.git 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. --- 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 {