[Koha-bugs] [Bug 33309] New: Race condition while checkout renewal with ES

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 22 17:10:04 CET 2023


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

            Bug ID: 33309
           Summary: Race condition while checkout renewal with ES
 Change sponsored?: ---
           Product: Koha
           Version: 22.11
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Architecture, internals, and plumbing
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: januszop at gmail.com
        QA Contact: testopia at bugs.koha-community.org
                CC: nick at bywatersolutions.com

Performing checkout renewal with ES turned on causes race condition in
BackgroundJobs processing, manifesting with lines like:

[2023/03/20 17:18:10] [WARN] No job found for id=13218 main::
/usr/share/koha/bin/background_jobs_worker.pl (114)

in worker-output.log.

This is due to calling -- inside transaction -- $item_object->store in
C4::Circulation::AddRenewal.  [Koha::Item->store in turn calls
$indexer->index_records, which in installations with ES creates BackgroundJob].

The solution could be similar to that proposed in Bug 33019, i.e. calling
$item_object->store with {skip_record_index => 1} and calling
$indexer->index_records after the transaction ends.

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


More information about the Koha-bugs mailing list