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
…
Authorization.pm
…
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
…
Elasticsearch.pm Bug 19893: Add code review fixes 2018-11-16 11:04:59 +00:00
Exception.pm
…
Hold.pm Bug 21478: Add Koha::Exceptions::Hold 2019-01-28 11:35:50 +00:00
Ill.pm
…
Library.pm
…
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
…
Plugin.pm
…
Token.pm Bug 21998: Throw exception on bad pattern 2019-03-22 20:21:44 +00:00