| 1 | --- |
| 2 | features: |
| 3 | - | |
| 4 | Added support for detecting and handling MariaDB error 1020 "Record has |
| 5 | changed since last read" which occurs under REPEATABLE-READ isolation |
| 6 | level when MariaDB detects that a row has changed since it was last read |
| 7 | in the current transaction. This error is now wrapped in a new |
| 8 | ``DBConsistencyError`` exception class that inherits from ``DBDeadlock``, |
| 9 | ensuring that existing retry decorators and error handling code will |
| 10 | automatically handle this transient concurrency condition. |
| 11 | fixes: |
| 12 | - | |
| 13 | Fixed handling of MariaDB error 1020 that was previously not properly |
| 14 | categorized by oslo.db's exception filtering system. This error, which |
| 15 | can occur in OpenStack services like Nova and Keystone when using MariaDB |
| 16 | with REPEATABLE-READ isolation level, is now properly wrapped in a |
| 17 | ``DBConsistencyError`` exception (a subclass of ``DBDeadlock``) instead |
| 18 | of being passed through as a generic ``OperationalError``. This ensures |
| 19 | that existing retry mechanisms that handle deadlock-like conditions will |
| 20 | automatically work with this MariaDB-specific consistency error. |
| 21 | |
| 22 | For more details, see `bug 2116186 |
| 23 | <https://bugs.launchpad.net/nova/+bug/2116186>`_. |