[Bug 37147] New: If the MARC import chokes on bad record, it does not fail background job or import
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37147 Bug ID: 37147 Summary: If the MARC import chokes on bad record, it does not fail background job or import Change sponsored?: --- Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: MARC Bibliographic record staging/import Assignee: koha-bugs@lists.koha-community.org Reporter: dcook@prosentient.com.au QA Contact: testopia@bugs.koha-community.org I've had a library accidentally try to import a record with bad data, and the MARC import is silently stopping. The background job stays stuck as "Started" and the batch stays stuck as "Staged". Glancing at the code... it looks like it should work. Going to spend a couple minutes trying to figure this one out... -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37147 --- Comment #1 from David Cook <dcook@prosentient.com.au> --- This is so bizarre... I've added all this debugging code, and according to the code it is updating... but it's not actually updating the database. It looks a lot like a transaction related issue... but DBIx::Class's transaction handling leaves a lot to be desired... -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37147 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |27421 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27421 [Bug 27421] Porting tools/stage-marc-import.pl to BackgroundJob -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37147 --- Comment #2 from David Cook <dcook@prosentient.com.au> --- Tricky trying to reproduce the scenario. Haven't yet received the real MARC file with the problem, and my attempts to re-create one yield either a MARC file that succeeds or fails to stage... -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37147 --- Comment #3 from David Cook <dcook@prosentient.com.au> --- Interestingly it seems easier to sneak bad bytes into Koha through MARC records rather than MARCXML records... especially when you provide multiple records with some of the records being 100% OK. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37147 --- Comment #4 from David Cook <dcook@prosentient.com.au> --- I've got the file, and tried it again in my dev environment, which should be pretty much the same as the backup system it's not working on... but in local dev the background job is correctly marked as "Failed", although the batch is still marked as "Staged" instead of failed... -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37147 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #5 from David Cook <dcook@prosentient.com.au> --- I can't reproduce this now so going to close it for now... -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org