[MDEV-14336] Deadlock at unlocking tables when local server and replication write to same table Created: 2017-11-09 Updated: 2019-03-22 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Update, Locking, Platform RedHat, Replication, Storage Engine - InnoDB |
| Affects Version/s: | 10.2.9, 10.2.10, 10.2.11 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Alex | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 4 |
| Labels: | deadlock, innodb, replication, update | ||
| Environment: |
CentOS 7 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
We have a daisy-chain replication with 3 masters. Since the upgrade from 10.1 to 10.2.9 we get deadlocks 1-2 times a week on one specific table (varies from 0 to 500 entries) which is written by the local server and also by the replication. The replication stucks at the state "Unlocking tables" and stops the whole replication. It is not possible to kill the process within MariaDB, you have to kill the whole mysql-process with kill -9. There are no errors in error-log. A recent upgrade from 10.2.9 to 10.2.10 did not solve the problem. Any ideas? • Configuration
• Stucked Process
• Workaround at Deadlock
|
| Comments |
| Comment by Elena Stepanova [ 2017-11-20 ] |
|
Could you please get a stack trace from all threads on a still running (deadlocked) server? gdb --batch --eval-command="thread apply all bt" <path to mysqld> <pid> or alike. |
| Comment by Alex [ 2017-12-07 ] |
|
For the record, we had 1-2 deadlocks per week with 10.2.9, we had 1 deadlock after upgraded to 10.2.10 and no further deadlocks after filing this bug-report. We will make a stack trace if the deadlock occurs again. |
| Comment by Alex [ 2017-12-08 ] |
|
Unfortunately it happend again with 10.2.11. The replication stucked at the state "Unlocking tables" and stopped the whole replication. |
| Comment by Alex [ 2017-12-13 ] |
|
Added a new stacktrace and processlist for today when the deadlock happened again. Additionally a stacktrace after "systemctl stop mariadb" where the mysql-process is still running stucked. |