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

            Bug ID: 16885
           Summary: koha-stop-zebra should be more sure of stopping
                    zebrasrv
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Packaging
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]

The koha-stop-zebra command can finish without ensuring that zebrasrv is
actually stopped.  In particular, if there is an active query running when
daemon --stop is run, the following state of affairs will occur until the query
finishes or times out:

- the child zebrasrv processing the query continues to run
- the parent zebrasrv process becomes a zombie
- the daemon(1) process continues to run -- and doesn't delete the lock file
until the children go away.

This is particularly problematic when a koha-stop-zebra is followed by a
koha-start-zebra in quick succession, as happens during a logrotate. This is
because while zebrasrv is in the half-stopped, half-started stop, the lock file
still exists... and koha-start-zebra will see it and believe that zebrasrv is
still running. When the query holding the child zebrasrv process finishes, the
instance is left with no running Zebra.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to