Koha-clms/Koha/Exceptions
Nick Clemens 87a4a08162 Bug 26457: [20.05.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: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
2021-03-05 20:41:32 +00:00
..
Checkouts
…
Patron
…
Account.pm
…
Authentication.pm
…
Authorization.pm
…
Checkout.pm Bug 26457: [20.05.x] Throw exception if update of issues table fails 2021-03-05 20:41:32 +00:00
ClubHold.pm
…
Config.pm
…
Elasticsearch.pm
…
Exception.pm
…
Hold.pm Bug 27209: Add Koha::Hold->set_pickup_location 2020-12-28 14:56:37 +00:00
Ill.pm
…
Library.pm
…
Metadata.pm Bug 26171: (QA follow-up) Add table name and object type to message 2021-01-10 20:43:35 +00:00
Object.pm Bug 25423: Add Koha::Exceptions::Object::NotInstantiated 2020-05-08 15:42:37 +02:00
Password.pm
…
Patron.pm Bug 14708: (QA follow-up) Throw exception when deleting anonymous borrower 2020-12-09 21:39:10 +00:00
Plugin.pm
…
Token.pm
…