projects
/
postgres-xl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cebe3e
)
Increase the timeout for waiting to end query to 1s from existing 20ms.
author
Pavan Deolasee
<
[email protected]
>
Thu, 18 Feb 2016 10:13:35 +0000
(15:43 +0530)
committer
Pavan 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
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/pgxc/pool/execRemote.c
b/src/backend/pgxc/pool/execRemote.c
index b4431d1e1f9c9218a093faf7df65f77c9d2059f2..dcc3aeafe2b2146f9a766630c4b5926538b6aaa7 100644
(file)
--- 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
2
0
+#define END_QUERY_TIMEOUT
100
0
typedef struct
{