[Koha-bugs] [Bug 35141] Prevent link_bibs_to_authorities from dying on search error

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 24 14:04:11 CEST 2023


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

--- Comment #1 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 157738
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=157738&action=edit
Bug 35141: Catch ES search exceptions in link_bibs_to_authorities, warn, and
continue

This patch simplay adds an eval and a warning to link_bibs_to_authorities to
catch any errors while searching and continue linking.

To test:
1 - edit /etc/kohia/sites/kohadev/koha-conf.xml and add to elasticsearch stanza
    <request_timeout>0</request_timeout>
2 - perl misc/link_bibs_to_authorities.pl
3 - It dies immediately
4 - Apply patch
5 - perl misc/link_bibs_to_authorities.pl
6 - Now it tries every record, throwing warnings along the way, but completes

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