<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 4, 2016 at 10:16 AM, Yugo Nagata <span dir="ltr">&lt;<a href="mailto:nagata@sraoss.co.jp" target="_blank">nagata@sraoss.co.jp</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi Usama,<br>
<span class=""><br>
On Tue, 29 Dec 2015 03:32:00 +0500<br>
Muhammad Usama &lt;<a href="mailto:m.usama@gmail.com">m.usama@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi Yugo<br>
&gt;<br>
&gt; Many thanks for the patch. Although the patch takes care of zombie<br>
&gt; processes, but I think blocking the watchdog process at time of escalation<br>
&gt; and de-escalation might lead to some un-expected results, because at that<br>
&gt; time when the watchdog process will be waiting for the<br>
&gt; escalation/de-escalation process to finish it would not be replying to<br>
&gt; other nodes.<br>
&gt; So can you please have a look at the attached path which uses the SIGCHILD<br>
&gt; to handle the zombie process problem<br>
<br>
</span>I have looked at and tested this and I think this is good to be committed.<br></blockquote><div><br></div><div>I have committed the patch to master branch</div><div><a href="http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=106681f4bf6a5ecb230716c33918a0d76c4cdcfc" rel="noreferrer" target="_blank" style="font-size:12.8px">http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=106681f4bf6a5ecb230716c33918a0d76c4cdcfc</a> </div><div><br></div><div>Best regards</div><div>Muhammad Usama</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class=""><div class="h5"><br>
&gt;<br>
&gt; Thanks<br>
&gt; Best regards<br>
&gt; Muhammad Usama<br>
&gt;<br>
&gt; On Mon, Dec 28, 2015 at 2:11 PM, Yugo Nagata &lt;<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Hi Usama,<br>
&gt; &gt;<br>
&gt; &gt; I write the patch to fix it.<br>
&gt; &gt;<br>
&gt; &gt; In current, escalation process is forked but not waited by watchdog<br>
&gt; &gt; process. Fix is to wait the escalation process by waitpid. That is,<br>
&gt; &gt; watchdog is blocked while waiting the escalation finishing.<br>
&gt; &gt;<br>
&gt; &gt; Any comment?<br>
&gt; &gt;<br>
&gt; &gt; Regards,<br>
&gt; &gt;<br>
&gt; &gt; On Mon, 21 Dec 2015 16:46:33 +0900<br>
&gt; &gt; Yugo Nagata &lt;<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; Usama,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; A zombie process appeared after pgpool started with watchdog.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; $ ps aux | grep pgpool<br>
&gt; &gt; &gt; ...<br>
&gt; &gt; &gt; yugo-n   32156  0.0  0.0  19880  1244 pts/27   S    16:31   0:00 pgpool:<br>
&gt; &gt; watchdog<br>
&gt; &gt; &gt; yugo-n   32165  0.0  0.0      0     0 pts/27   Z    16:31   0:00<br>
&gt; &gt; [pgpool] &lt;defunct&gt;<br>
&gt; &gt; &gt; yugo-n   32166  0.0  0.0  17792   768 pts/27   S    16:31   0:00 pgpool:<br>
&gt; &gt; lifecheck<br>
&gt; &gt; &gt; ...<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I found PID 32165 was pid of the escalation process.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;  2015-12-21 16:31:33: pid 32156: LOG:  escalation process started with<br>
&gt; &gt; PID:32165<br>
&gt; &gt; &gt;  2015-12-21 16:31:33: pid 32165: LOG:  watchdog: escalation started<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I can reproduce this on Ubuntu but not CentOS.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Regarads,<br>
&gt; &gt; &gt; --<br>
&gt; &gt; &gt; Yugo Nagata &lt;<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>&gt;<br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; pgpool-hackers mailing list<br>
&gt; &gt; &gt; <a href="mailto:pgpool-hackers@pgpool.net">pgpool-hackers@pgpool.net</a><br>
&gt; &gt; &gt; <a href="http://www.pgpool.net/mailman/listinfo/pgpool-hackers" rel="noreferrer" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-hackers</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Yugo Nagata &lt;<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>&gt;<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; pgpool-hackers mailing list<br>
&gt; &gt; <a href="mailto:pgpool-hackers@pgpool.net">pgpool-hackers@pgpool.net</a><br>
&gt; &gt; <a href="http://www.pgpool.net/mailman/listinfo/pgpool-hackers" rel="noreferrer" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-hackers</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
<br>
<br>
</div></div><span class=""><font color="#888888">--<br>
Yugo Nagata &lt;<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>&gt;<br>
</font></span></blockquote></div><br></div></div>