[Koha-bugs] [Bug 34678] Real-time holds queue updates can cause the holds queue builder cron to fail

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Sep 13 19:10:40 CEST 2023


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

--- Comment #2 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 155595
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=155595&action=edit
Bug 34678: Allow new entries to overwrite hold_fill_targets

When using background jobs, there is a possibility of a race condition where
two jobs will be updating the holds queue for the same biblio. We should try to
minimize those cases (see bug 34596)

In the meantime though, we should prevent jobs possibly dying, and allow the
most recent update to succeed.

There is a possibility two updates wil assign different items to the same
reserve, and that a reserve could end up in the queue twice, however, whichever
one is filled first will delete both entries. as filling the hold deletes by
reserve id (see bug 24359)

To test:
1 - prove -v t/db_dependent/Reserves.t
2 - It fails
3 - Apply patch
4 - t/db_dependent/Reserves.t
5 - It succeeds!

-- 
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