]> git.koha-community.org Git - koha.git/commit
Bug 35141: Catch ES search exceptions in link_bibs_to_authorities, warn, and continue
authorNick Clemens <nick@bywatersolutions.com>
Tue, 24 Oct 2023 11:51:29 +0000 (11:51 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 27 Oct 2023 19:44:55 +0000 (16:44 -0300)
commit22c0be31c73249fa534afb209f2a0229f84b7568
treec14c475ac6973b3acb5c0c6e8d76a961ab33a8a2
parentbbeab36789d8dd020bc5395d76c54cc2910caf49
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@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
misc/link_bibs_to_authorities.pl