[Koha-bugs] [Bug 35086] Koha::SearchEngine::Elasticsearch::Indexer->update_index needs to commit in batches

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 11 12:36:00 CET 2024


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

--- Comment #16 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
I am wondering about the changes made to the worker.

+        while ( ( my @auth_chunk = $auth_chunks->() ) ) {
+            try {
+                $auth_indexer->update_index( \@auth_chunk );
+            } catch {
+                $logger->warn( sprintf "Update of elastic index failed with:
%s", $_ );
+            };
+        }

Should not we surround the while with a try instead?... Not sure what's best
here!

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


More information about the Koha-bugs mailing list