[Bug 6433] New: rebuild_zebra.pl does not handle MARC::Record exceptions gracefully
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6433 Bug #: 6433 Summary: rebuild_zebra.pl does not handle MARC::Record exceptions gracefully Classification: Unclassified Change sponsored?: --- Product: Koha Version: rel_3_6 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P5 Component: Searching AssignedTo: gmcharlt@gmail.com ReportedBy: srdjan@catalyst.net.nz QAContact: koha-bugs@lists.koha-community.org rebuild_zebra.pl dies on some MARC::Record errors. A combination of workarounds for MARC::Record deficiencies and legitimate exception handling. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6433 Srdjan Jankovic <srdjan@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED AssignedTo|gmcharlt@gmail.com |srdjan@catalyst.net.nz --- Comment #1 from Srdjan Jankovic <srdjan@catalyst.net.nz> 2011-05-31 03:37:48 UTC --- Created attachment 4316 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=4316 patch -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6433 Srdjan Jankovic <srdjan@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 |PATCH-Sent Patch Status|--- |Needs Signoff -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6433 Magnus Enger <magnus@enger.priv.no> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #4316|0 |1 is obsolete| | --- Comment #2 from Magnus Enger <magnus@enger.priv.no> 2011-05-31 12:08:44 UTC --- Created attachment 4318 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=4318 Signed-off patch This patch solved a real problem for me. I was rebuilding Zebra and getting this: 11401........................................................................... 11501........................................................................... 11601.................Wide character in subroutine entry at /usr/share/perl5/MARC/Charset/Table.pm line 96. After applying the patch I got this, which is a lot easier to debug: 11601...Error exporting record 13611 (biblio) XML at misc/migration_tools/rebuild_zebra.pl line 359. .....................................................Error exporting record 13665 (biblio) XML at misc/migration_tools/rebuild_zebra.pl line 359. ..........................................Error exporting record 13708 (biblio) XML at misc/migration_tools/rebuild_zebra.pl line 359. I do have one minor issue with how rebuild_zebra,pl works now: After applying the patch the script is more likely to survive bad records, but when there are a lot of records, Zebra's listing of the tmp files for the first 1000 records indexed (do we need that anyway?) will fill the scrollback and make it impossible to go back and see if there were any errors during indexing. This can be worked around by redirecting output from the script to a file which can be inspected at leisure after the script has run it's course: rebuild_zebra.pl -b -v &> indexlog.txt But perhaps it would be possible to give a summary of any errors after the last of the output that the script produces today? I'm signing off anyway, 'cause I think this is an improvement over the current script. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6433 Magnus Enger <magnus@enger.priv.no> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |magnus@enger.priv.no Patch Status|Needs Signoff |Signed Off -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6433 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |chris@bigballofwax.co.nz Patch Status|Signed Off |Patch Pushed --- Comment #3 from Chris Cormack <chris@bigballofwax.co.nz> 2011-06-09 23:31:09 UTC --- Tested and works well, pushed to master -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6433 Jared Camins-Esakov <jcamins@cpbibliography.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to Master |RESOLVED Resolution|--- |FIXED --- Comment #4 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- So far as it goes, this seems to work. Closing. -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org