]> git.koha-community.org Git - koha.git/commit
Bug 26312: Catch ES Client errors, log, and continue indexing when error encountered
authorNick Clemens <nick@bywatersolutions.com>
Thu, 27 Aug 2020 16:04:57 +0000 (16:04 +0000)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Sun, 25 Apr 2021 15:23:27 +0000 (15:23 +0000)
commita60a3b26d724fab0fce1401fddf95814ab421b86
treee48c28236a38f20a37e5e6ef04b22a5241af7525
parentbb23ab9fe31929ce9ebc736e1e92bd48faf6ec3c
Bug 26312: Catch ES Client errors, log, and continue indexing when error encountered

This catches a timeout response from the ES server, logs this, and continues the indexing

To test:
1 - perl misc/search_tools/rebuild_elasticsearch.pl
2 - Make the ES server timeout (I don't have good instruction yet)
3 - Watch the job crash
4 - Apply patches
5 - perl misc/search_tools/rebuild_elasticsearch.pl
6 - Make the server timeout
7 - Note the job reports failed commit, and continues

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Bug 26312: (follow-up) Reset buffers even if commit fails

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Bug 26312: (follow-up) Fix whitespace and missing semicolon

Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 72e6999db7cbfc077f200930dd28400d1f86831e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit d78690a0ab4d38ef3ad430b6ed9bd02b393834b2)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Koha/Exceptions/Elasticsearch.pm
Koha/SearchEngine/Elasticsearch/Indexer.pm
misc/search_tools/rebuild_elasticsearch.pl