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

--- Comment #7 from Tomás Cohen Arazi (tcohen) <[email protected]> ---
Created attachment 207320
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207320&action=edit
Bug 43729: Remove STOMP support from the Elasticsearch indexer daemon

With STOMP being retired, the Elasticsearch indexer daemon no longer needs
to connect to a message broker. This patch strips the STOMP branch
(connect/subscribe/receive_frame and the frame ack/nack handling) and keeps
only the DB-polling loop, which already existed as the broker-less fallback.

The batched behaviour is preserved: the daemon still fetches up to
--batch_size 'new' jobs from the elastic_index queue, aggregates their
record ids and commits them to Elasticsearch in chunks, resetting the batch
to 'new' on a NoNodes error so it is retried after reconnection.

Now-unused imports (JSON::decode_json, Time::HiRes) and the frame
not-found retry bookkeeping are removed, and the POD is updated to drop the
Stomp/RabbitMQ wording.

Test plan:
1. Apply patch
2. Use Elasticsearch as the search engine, without RabbitMQ
3. Run:
   $ ktd --shell
   k$ perl -c misc/workers/es_indexer_daemon.pl
=> SUCCESS: syntax OK!
4. Run the daemon, modify a record so an indexing job is enqueued, and
   confirm the record is (re)indexed and the job reaches 'finished', with
   no broker connection warnings in the logs.
=> SUCCESS: Record reindexed, no warnings!
5. Sign off :-D

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to