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

2023-09-13 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34678

--- Comment #2 from Nick Clemens  ---
Created attachment 155595
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=155595=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.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://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/


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

2023-09-13 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34678

--- Comment #1 from Nick Clemens  ---
Created attachment 155594
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=155594=edit
Bug 34678: Unit test

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://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/


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

2023-09-13 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34678

Nick Clemens  changed:

   What|Removed |Added

 Status|NEW |Needs Signoff

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://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/