[Koha-bugs] [Bug 9050] rebuild_zebra should use the adelete action so it doesn't fail when deleting a record not in the index

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Nov 10 14:46:07 CET 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9050

--- Comment #1 from Jared Camins-Esakov <jcamins at cpbibliography.com> ---
Created attachment 13373
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=13373&action=edit
Bug 9050: Use safer adelete when deleting records from Zebra index

Previously we used the "delete" command in zebraidx, which fails when
you try to delete a record that doesn't exist in the index. By changing
to the "adelete" command, we can reduce the likelihood of a failed
delete causing ghost records. A symptom of this problem is the warning
message occasionally encountered when indexing from the zebraqueue,
"[warn] cannot delete record above (seems new)."

To test:
1) Add a recordDelete action for a record that does not exist to
   zebraqueue in MySQL:
   INSERT INTO zebraqueue (biblio_auth_number, operation, server) \
       VALUES (999999999, 'recordDelete', 'biblioserver');
2) Run `rebuild_zebra.pl -b -z -v [-x]`.
3) Note that you do not get the message "[warn] cannot delete record
   above (seems new)".

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


More information about the Koha-bugs mailing list