Increase the timeout for waiting to end query to 1s from existing 20ms.
authorPavan Deolasee <[email protected]>
Thu, 18 Feb 2016 10:13:35 +0000 (15:43 +0530)
committerPavan Deolasee <[email protected]>
Thu, 18 Feb 2016 10:13:35 +0000 (15:43 +0530)
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

index b4431d1e1f9c9218a093faf7df65f77c9d2059f2..dcc3aeafe2b2146f9a766630c4b5926538b6aaa7 100644 (file)
@@ -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
 {