[Koha-bugs] [Bug 30260] Script which checks index should also check if the zebraqueue has uncommitted records

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 10 03:48:31 CET 2022


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

--- Comment #1 from Aleisha Amohia <aleisha at catalyst.net.nz> ---
Created attachment 131532
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=131532&action=edit
Bug 30260: Add is_indexer_working check

Function checks if the zebraqueue has rows that are not 'done'

Will depend on a change in checkindex.sh which implements the check:
https://git.koha-community.org/Koha-community/global/src/branch/master/koha-zebra/checkindex.sh

To test:

1. disable the indexer

sudo koha-indexer --stop INSTANCENAME

2. catalogue 5 new records
3. confirm they don't show in any search results
4. in your terminal, go to the shell

sudo koha-shell INSTANCENAME

5. run the new script. run with -v for verbose or --rows X to specify
how many uncommitted records should be checked for. 5 is the default

perl misc/maintenance/check_zebraqueue.pl

6. confirm the script returns that the indexer is not working.

The function in koha-functions.sh is required for the pending change to
checkindex.sh

Sponsored-by: Catalyst IT

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


More information about the Koha-bugs mailing list