Skip Menu |

This queue is for tickets about the Parallel-Fork-BossWorkerAsync CPAN distribution.

Report information
The Basics
Id: 70189
Status: rejected
Priority: 0/
Queue: Parallel-Fork-BossWorkerAsync

People
Owner: JVANNUCCI [...] cpan.org
Requestors: pramodr [...] juniper.net
Cc: moosie [...] gmail.com
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Critical Bug in Parallel::Fork::BossWorkerAsync
Date: Wed, 10 Aug 2011 12:17:36 +0530
To: "bug-Parallel-Fork-BossWorkerAsync [...] rt.cpan.org" <bug-Parallel-Fork-BossWorkerAsync [...] rt.cpan.org>
From: Pramod Kumar Ravula <pramodr [...] juniper.net>
HI , To achieve the parallel execution we used a Perl module "Parallel::Fork::BossWorkerAsync" In one of our application. BUG in Parallel::Fork::BossWorkerAsync module: If any of the worker process gets killed from worker process pool, boss process is also going down. In such case we have to restart all the worker processes again. Boss process should not go down and Boss Process should create a new idle child worker processes to auto recover the killed child work process. Please let me know if you need any more information. Following test code I used to reproduce the problem. #!/volume/perl/bin/perl use Parallel::Fork::BossWorkerAsync; my $bw = Parallel::Fork::BossWorkerAsync->new( worker_count => 2, work_handler => \&work, ); $bw->add_work({a=>1 , b=>2}); $bw->add_work({a=>1 , b=>2}); while(1) { print "server running !!"; sleep(10); } sub work { my ($job)=@_; while(1) { print " i am in worker process $$ !!"; sleep(10); } } Thanks & regards, Pramod
RT-Send-CC: moosie [...] gmail.com, pramodr25 [...] gmail.com
Hi pramod, First, when a child worker dies, for whatever reason, it is not restarted. Not a bug, just a feature I haven't got around to adding. I can't reproduce the problem using your test program. I ran it on my only available system: Mac OSX 10.6.8, Perl 5.8.8. I needed to modify your code to add "\n" on the print statements so they'd flush to STDOUT. Then I killed a child manually, and both server and remaining child kept running. What OS/version, and perl version are you running? Any chance of testing on a different platform? Regards, -joe
Subject: Re: [rt.cpan.org #70189] Critical Bug in Parallel::Fork::BossWorkerAsync
Date: Fri, 2 Sep 2011 02:30:08 +0530
To: bug-Parallel-Fork-BossWorkerAsync [...] rt.cpan.org
From: pramod kumar ravula <pramodr25 [...] gmail.com>
Thanks for your reply, i am using it on freebsd os.if possible can we chat in gtalk or on phone.please let me know your gtalk id and phone number. On 2 Sep 2011 02:20, "Joe Vannucci via RT" < bug-Parallel-Fork-BossWorkerAsync@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=70189 > > > Hi pramod, > > First, when a child worker dies, for whatever reason, it is not > restarted. Not a bug, just a feature I haven't got around to adding. > > I can't reproduce the problem using your test program. I ran it on my > only available system: Mac OSX 10.6.8, Perl 5.8.8. > > I needed to modify your code to add "\n" on the print statements so > they'd flush to STDOUT. Then I killed a child manually, and both server > and remaining child kept running. > > What OS/version, and perl version are you running? Any chance of testing > on a different platform? > > Regards, > -joe
Subject: Re: [rt.cpan.org #70189] Critical Bug in Parallel::Fork::BossWorkerAsync
Date: Thu, 1 Sep 2011 17:07:33 -0400
To: bug-Parallel-Fork-BossWorkerAsync [...] rt.cpan.org
From: joe vannucci <moosie [...] gmail.com>
gmail chat is joe.vannucci@gmail.com. On Thu, Sep 1, 2011 at 5:00 PM, pramod kumar ravula via RT < bug-Parallel-Fork-BossWorkerAsync@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=70189 > > > Thanks for your reply, i am using it on freebsd os.if possible can we chat > in gtalk or on phone.please let me know your gtalk id and phone number. > On 2 Sep 2011 02:20, "Joe Vannucci via RT" < > bug-Parallel-Fork-BossWorkerAsync@rt.cpan.org> wrote:
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=70189 > > > > > Hi pramod, > > > > First, when a child worker dies, for whatever reason, it is not > > restarted. Not a bug, just a feature I haven't got around to adding. > > > > I can't reproduce the problem using your test program. I ran it on my > > only available system: Mac OSX 10.6.8, Perl 5.8.8. > > > > I needed to modify your code to add "\n" on the print statements so > > they'd flush to STDOUT. Then I killed a child manually, and both server > > and remaining child kept running. > > > > What OS/version, and perl version are you running? Any chance of testing > > on a different platform? > > > > Regards, > > -joe
> >