[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
Fri Oct 27 09:28:07 CEST 2023


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

Marcel de Rooy <m.de.rooy at rijksmuseum.nl> changed:

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

--- Comment #7 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Created attachment 157972
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=157972&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>

Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>

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


More information about the Koha-bugs mailing list