https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36736 --- Comment #18 from David Cook <dcook@prosentient.com.au> --- (In reply to Tomás Cohen Arazi from comment #17)
Hi, my work day is ending and I wanted to share what I've got so far. I haven't managed to reproduce the error so far.
I've added: * A schema file * Koha::Object-based classes for that schema * Tweaked the Test plugin so it has the usual ->register call * A plugin background job that (for now) just prints the schema it finds.
I expected it to not have the schemas defined, but they are.
I hope I missed something obvious and someone beats me on finishing the tests before I wake up :-D
You won't be able to reproduce the problem in "t/db_dependent/Koha/Plugins/Plugins.t", because Koha::Plugin::Test is already loaded in the BEGIN block of this test file. We'll need to have a separate test file just for this test. We'll want to add a Koha::Plugins->call() within a database transaction into Koha::BackgroundJob::TestBackgroundJob->process(), because that's what triggers the bug. Koha::Plugins->call() loads all enabled plugins, which will then reset the connection, and since we're in a database transaction, then we'll get a lock issue I believe. -- You are receiving this mail because: You are watching all bug changes.