pgpool2.git / summary / log / commit / refs
commit 836ebfd8772d1bb8b2ceba8d0cb1d76fe5209c69
Author: Muhammad Usama <m.usama@gmail.com>
Date: Thu May 07 14:15:06 2015 +0000
Downgrading the error level for EOF on backend connection for main process.
Throwing the FATAL error when EOF is encountered with backend is very harsh in
pgpool main process and can cause undesirable behavior.
Downgrading it to simple ERROR.
src/utils/pool_stream.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/utils/pool_stream.c b/src/utils/pool_stream.c
index a6656de82..ae19c939a 100644
--- a/src/utils/pool_stream.c
+++ b/src/utils/pool_stream.c
@@ -215,8 +215,13 @@ int pool_read(POOL_CONNECTION *cp, void *buf, int len)
cp->EOF_on_socket = true;
if (cp->isbackend)
{
+ if(processType == PT_MAIN)
+ ereport(ERROR,
+ (errmsg("unable to read data from DB node %d",cp->db_node_id),
+ errdetail("EOF encountered with backend")));
+
ereport(FATAL,
- (errmsg("unable to read data from DB node %d",cp->db_node_id),
+ (errmsg("unable to read data from DB node %d",cp->db_node_id),
errdetail("EOF encountered with backend")));
#ifdef NOT_USED
[parent: a2dbf56e4396]