[pgpool-hackers: 1276] Re: pgpool zombie with wathdog 3.5

Yugo Nagata nagata at sraoss.co.jp
Mon Dec 28 18:11:05 JST 2015


Hi Usama, 

I write the patch to fix it. 

In current, escalation process is forked but not waited by watchdog
process. Fix is to wait the escalation process by waitpid. That is,
watchdog is blocked while waiting the escalation finishing.

Any comment?

Regards,

On Mon, 21 Dec 2015 16:46:33 +0900
Yugo Nagata <nagata at sraoss.co.jp> wrote:

> Usama,
> 
> A zombie process appeared after pgpool started with watchdog.
> 
> $ ps aux | grep pgpool
> ...
> yugo-n   32156  0.0  0.0  19880  1244 pts/27   S    16:31   0:00 pgpool: watchdog                                                                                                                                                                                                          
> yugo-n   32165  0.0  0.0      0     0 pts/27   Z    16:31   0:00 [pgpool] <defunct>
> yugo-n   32166  0.0  0.0  17792   768 pts/27   S    16:31   0:00 pgpool: lifecheck 
> ...
> 
> I found PID 32165 was pid of the escalation process.
> 
>  2015-12-21 16:31:33: pid 32156: LOG:  escalation process started with PID:32165
>  2015-12-21 16:31:33: pid 32165: LOG:  watchdog: escalation started
> 
> I can reproduce this on Ubuntu but not CentOS.
> 
> Regarads,
> -- 
> Yugo Nagata <nagata at sraoss.co.jp>
> _______________________________________________
> pgpool-hackers mailing list
> pgpool-hackers at pgpool.net
> http://www.pgpool.net/mailman/listinfo/pgpool-hackers


-- 
Yugo Nagata <nagata at sraoss.co.jp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: watchdog_zombie.patch
Type: text/x-diff
Size: 3192 bytes
Desc: not available
URL: <http://www.sraoss.jp/pipermail/pgpool-hackers/attachments/20151228/45ede4c0/attachment.bin>


More information about the pgpool-hackers mailing list