Koha-clms/Koha/Exceptions
Nick Clemens 5867cf7a40 Bug 26457: [19.11.x] Throw exception if update of issues table fails
While this won't prevent the deadlock, it should catch the case where
a deadlock causes the DB update to fail and provide feedback to the user
and rollback the transaction

I don't know how to trigger the deadlock, I can only confirm that we see it, and
that this should catch it.

To test:
1 - Apply patches
2 - Checkout several items to a patron
3 - Confirm that 'Renew all' feature continues to work as expected and all items are renewed

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Bug 26457: Unit test

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Bug 26457: (QA follow-up) Switch to PK index in UPDATE on issues

The deadlock reports tell us that multiple transactions are
waiting for a X lock on a record but using a secondary index
on borrowernumber and itemnumber. Since we have the issue_id
at hand already, we should use that and benefit from the clustered
index (on PK) instead of using a secondary index.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
2021-03-24 00:39:44 +01:00
..
Checkouts Bug 14697: Introduce Koha::Checkouts::ReturnClaim(s) 2019-10-31 12:03:33 +00:00
Patron Bug 14570: Add error handling to Koha::Patron::Relationship->store 2019-08-20 16:05:57 +01:00
Account.pm Bug 23321: Add cash register support to paycollect 2019-09-23 11:39:22 +01:00
Authentication.pm Bug 18137: Add useful Koha::Exceptions 2017-09-21 11:27:04 -03:00
Authorization.pm Bug 18137: Add useful Koha::Exceptions 2017-09-21 11:27:04 -03:00
Checkout.pm Bug 26457: [19.11.x] Throw exception if update of issues table fails 2021-03-24 00:39:44 +01:00
ClubHold.pm Bug 19618: Add api endpoint for club holds 2019-10-01 08:05:58 +01:00
Config.pm Bug 19542: Add a check for ES configuration health 2017-12-11 14:30:42 -03:00
Elasticsearch.pm Bug 19893: Add code review fixes 2018-11-16 11:04:59 +00:00
Exception.pm Bug 21022: (follow-up) Move overloaded full_message method to subclass 2018-07-13 13:25:15 +00:00
Hold.pm Bug 21478: Add Koha::Exceptions::Hold 2019-01-28 11:35:50 +00:00
Ill.pm Bug 7317: Handle missing email addresses gracefuly 2017-11-09 11:42:15 -03:00
Library.pm Bug 18072: Add Koha::Item->can_be_transferred 2018-07-18 17:29:04 +00:00
Metadata.pm Bug 23425: (QA follow-up) Keep it generic 2019-09-23 10:41:58 +01:00
Object.pm Bug 23321: Allow setting of branch default 2019-09-23 11:39:22 +01:00
Password.pm Bug 22706: Add plugin hooks for Norwegian national patron database 2019-10-29 12:19:49 +00:00
Patron.pm Bug 21337: (QA follow-up) Rename exception code 2018-10-26 16:06:57 +00:00
Plugin.pm Bug 21116: Add API routes through plugins 2018-09-14 17:21:14 +00:00
Token.pm Bug 21998: Throw exception on bad pattern 2019-03-22 20:21:44 +00:00