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

--- Comment #2 from Tomás Cohen Arazi (tcohen) <[email protected]> ---
Created attachment 207315
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207315&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. Use Elasticsearch as the search engine, without RabbitMQ.
2. Run misc/workers/es_indexer_daemon.pl
3. Modify a record so an indexing job is enqueued.
4. Confirm the record is (re)indexed and the job reaches 'finished', with
   no broker connection warnings in the logs.

-- 
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