[pgpool-committers: 2501] pgpool: Fix a hang when an error occurs in a transaction block with rep

Yugo Nagata nagata at sraoss.co.jp
Mon Mar 30 16:14:13 JST 2015


Fix a hang when an error occurs in a transaction block with replication mode

When an error occurs at a backend node in a transaction block with
replication mode, pgpool-II sends an invalid query to other
backends to sync transaction states. However, previously, this was
not sent to master node, and pgpool-II was waiting for master's
response forever.

This bug is caused to a specification change since 3.3.0 that load
balance is allowed in a transaction block with replication mode.

To fix this, pgpool sends the invalid query to all backends,
including master, except the node which the original query was sent.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=e61eda67ba0bb0fe89f92454a498802c54cf38af

Modified Files
--------------
src/protocol/pool_proto_modules.c |   12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)



More information about the pgpool-committers mailing list