[pgpool-hackers: 849] Small problem in pgpool-II side implementation of pcp_detach_node

Muhammad Usama m.usama at gmail.com
Thu Apr 2 23:32:37 JST 2015


Hi

I think there is a problem in pgpool-II side implementation of
pcp_detach_node command. pcp_detach_node should check if it is allowed to
process detach_node command on the particular node before blocking the
incoming connections and closing the existing connections.

This is the problem in the case when gracefully detaching of the node is
requested.

Consider the example, If the pgpool-II is connected to 2 backend nodes.
And user asks the pgpool-II to detach node-id 3

usama at ubuntu: pcp_detach_node -U postgres -g -d 3

Now, as node id 3 is not a valid backend node in this situation, The
command should immediately return with an error instead it disallows the
new incoming connections, close the active connection only to find out the
operation is not allowed.

What are your thoughts on it? Should I go ahead and make this above change?

Thanks
Best regards
Muhammad Usama
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.sraoss.jp/pipermail/pgpool-hackers/attachments/20150402/5d4e9c70/attachment.html>


More information about the pgpool-hackers mailing list