https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44321 Bug ID: 44321 Summary: t/db_dependent/www/search_utf8.t fails intermittently with Elasticsearch Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Test Suite Assignee: chris@bigballofwax.co.nz Reporter: martin.renvoize@openfifth.co.uk QA Contact: testopia@bugs.koha-community.org Target Milestone: --- t/db_dependent/www/search_utf8.t fails intermittently when run with Elasticsearch 8, for example the "UTF-8 chars are correctly present. Good" checks at lines 161 and 187 on Koha_Main_D13 #2418 and Koha_Main_D12 #4085 (24-25 Nov 2026). Locally on a fresh KTD with ES8 the first run after boot failed 6 checks (all three record blocks); subsequent runs passed, including one with the ES indexer deliberately paused for 16 seconds. Not reproduced since, so the cause is unconfirmed. Suspected cause: after staging and importing, indexing is done by a separate polled background job (update_elastic_index, es_indexer_daemon.pl), but t::lib::Mocks::Zebra::load_records_ui only does "sleep 10". Polling can add up to 10 seconds for the import job and up to 10 more for the indexing job. Possible fix: when SearchEngine is Elasticsearch, wait for the marc_import_commit_batch and update_elastic_index jobs to finish instead of sleeping. Test plan: 1. ktd --search-engine es8 up, then: prove -v t/db_dependent/www/search_utf8.t 2. Repeat several times, including straight after starting KTD, and under load. 3. All checks should pass every time. -- You are receiving this mail because: You are watching all bug changes.