]> 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)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Mon, 13 Nov 2023 15:22:15 +0000 (15:22 +0000)
commita552631cd7a3f42c48fd4c9b3c743f0717bfdcaa
tree19da287c0bd96ee5a2444912b27b2015466192a3
parent55db32c6bd4180aa8f1802d08d685471e0fd23ca
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>
(cherry picked from commit 07cf6fccc0afdab10ac39ae33d6a9841cb1abf30)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
misc/link_bibs_to_authorities.pl