]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 8 Nov 2023 07:37:57 +0000 (21:37 -1000)
commit07cf6fccc0afdab10ac39ae33d6a9841cb1abf30
tree48766d5d4e8988619265416a7c40dd00e00ed1a4
parenta65964c35b2d38ec7bcd87182e00ae4567aa0ae4
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>
(cherry picked from commit 22c0be31c73249fa534afb209f2a0229f84b7568)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
misc/link_bibs_to_authorities.pl