Skip to content

InnoDB: Rollback on timeout #5719

@staabm

Description

@staabm

Feature description / Feature Beschreibung
bin heute über folgenden artikel gestolpert:
https://severalnines.com/blog/how-fix-lock-wait-timeout-exceeded-error-mysql/

darin ist beschrieben dass MySQL InnoDB von haus aus bei einem Lock Wait Timeout nur das letzte statement einer transaktion zurückrollt:

This means, by following the default setting, MySQL is not going to fail and rollback the whole transaction, nor retrying again the timed out statement and just process the next statements until it reaches COMMIT or ROLLBACK. This explains why transaction T2 was partially committed!

d.h. das verhalten was man erwarten würde und auch dem ACID modell entspricht tritt per default bei Lock Wait Timeout nicht ein.

-> sollten wir ggf. bei der installation/im setup o.ä. warnen falls hier das innodb_rollback_on_timeout setting falsch eingestellt ist?

Metadata

Metadata

Assignees

No one assigned

    Labels

    CoreREDAXO Core related thingsenhancementImprovements for existing features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions