[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
Wed Oct 25 01:43:03 CEST 2023


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

David Nind <david at davidnind.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #157738|0                           |1
        is obsolete|                            |

--- Comment #3 from David Nind <david at davidnind.com> ---
Created attachment 157766
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=157766&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

Signed-off-by: David Nind <david at davidnind.com>

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