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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]

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.
_______________________________________________
Koha-bugs mailing list
[email protected]
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/

Reply via email to