[MDEV-15921] mariabackup hangs at FLUSH TABLES WITH READ LOCK when Node is wsrep_desync Created: 2018-04-18 Updated: 2018-05-15 Resolved: 2018-04-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Backup, Galera |
| Affects Version/s: | 10.3.6 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Critical |
| Reporter: | Zdravelina Sokolovska (Inactive) | Assignee: | Vladislav Vaintroub |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
CentOS 7.4 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
mariabackup hangs at FLUSH TABLES WITH READ LOCK when Node is wsrep_desync on Galera Node set wsrep_desync and FTWRL attached full mariabackup log file and sql processlist ;
2. Perform mariabackup from other session
mariabackup hangs
|
| Comments |
| Comment by Vladislav Vaintroub [ 2018-04-18 ] | |||||||||||||||||||||||||||||||
|
It does not hang, it waits for the current holder of global read lock to release the lock (unlock tables). Holding that lock for long time is an excellent way to stall many queries, and not just mariabackup. If you do not want mariabackup to do "flush tables with read lock", there is an option for it. there are also options for controlling "flush table with read lock" timeouts, and even more (like, forcefully killing sessions that take too long time) | |||||||||||||||||||||||||||||||
| Comment by Vladislav Vaintroub [ 2018-04-19 ] | |||||||||||||||||||||||||||||||
|
You are missing FTWRL locks all tables. do not hold it for long. do UNLOCK TABLES, when you're ready with whatever you did under lock. | |||||||||||||||||||||||||||||||
| Comment by Vladislav Vaintroub [ 2018-04-19 ] | |||||||||||||||||||||||||||||||
|
Alternatively, if you in any reason have to FTWRL in the session, and hold it, you can do backup with --no-locks | |||||||||||||||||||||||||||||||
| Comment by Zdravelina Sokolovska (Inactive) [ 2018-04-20 ] | |||||||||||||||||||||||||||||||
|
the same occurs when do backup with --no-locks mariabackup --backup -u root -p1 --galera-info --no-locks --target-dir=/var/mariadb/backup/B1
. | |||||||||||||||||||||||||||||||
| Comment by Vladislav Vaintroub [ 2018-04-20 ] | |||||||||||||||||||||||||||||||
|
it does not hang, it waits, for lock holder to release the lock. and it does not work, because the option was mistyped (also in our documentation). it is called correctly --no-lock , not --no-locks |