[Koha-bugs] [Bug 20342] Fix table locking issue, progress bar not updating, and allow use of plack for Stage MARC Import

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 30 00:43:37 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20342

--- Comment #19 from David Cook <dcook at prosentient.com.au> ---
As Kyle has observed, the child process used to do the background import isn't
exiting. It's staying on as a starman worker, and that's causing the problems.

I've looked at the posted patches and tried modifications of them (along with
the patch for Bug 26854), and I've wound up with 2 scenarios.

1. The child process does not exit and it causes problems. You'll see a 500 in
your access logs when the child process exits, and further imports will fail.
Probably other unexpected bad things too.

2. The child process exits but it stays as a zombie process, since its parent
Starman process is long lived

In the 2nd scenario, everything seems fine in the Koha UI, but eventually your
process table will fill up, and your OS will crash.

Except... Starman workers are recycled every X requests due to the
--max-requests option for starman. At that point, the zombie processes would be
inherited by the init process 1, and then they'd be reaped.

But that's really not a reasonable path forward.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list