[MDEV-27127] slave hung at shutdown Created: 2021-11-26 Updated: 2022-08-31 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Affects Version/s: | 10.4.17, 10.4.18, 10.4.19, 10.4.20, 10.4.21, 10.4.22 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Jozef Kováč | Assignee: | Brandon Nesterenko |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | hang, shutdown | ||
| Environment: |
Oracle Linux 8.4 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
Mariadb stuck(hang) at shutdown approximately 1/3 times with active slave connection, execuiting STOP ALL SLAVES before shutdown helps. Configuration and strace added to attachment. Shutdown from error_log (i eventually killed with -9, nothing else works, you can wait for hours) |
| Comments |
| Comment by Marko Mäkelä [ 2021-11-26 ] | |
|
Please attach a debugger to the server after you have initiated a shutdown and produce a stack trace of all threads that are executing. In any GNU/Linux system, the following should work:
On some systems, attaching to an arbitrary process will require special privileges. For example, the kernels shipped by Ubuntu would require that the command be prefixed with sudo. | |
| Comment by Jozef Kováč [ 2021-11-29 ] | |
|
Different setup but most likely same problem. Added attachment mariadb_shutdown_gdb.log mariadb_shutdown_gdb.log | |
| Comment by Marko Mäkelä [ 2021-11-29 ] | |
|
lathander, thank you. I checked all InnoDB threads in mariadb_shutdown_gdb.log | |
| Comment by Jozef Kováč [ 2022-08-31 ] | |
|
Can`t reproduce in 10.4.25,26 or 10.5.17. |