Optimize MYSQL_REPLICATION_SLAVE_DUMP behavior #76149
Labels
mysql
stale
15 days without activity
tech-issues
The user has a technical issue about an application
triage
Triage is needed
Name and Version
bitnami/mysql:8.4-debian-12
What architecture are you using?
amd64
What steps will reproduce the bug?
What is the expected behavior?
Writing to the database must not be allowed during the dump process.
What do you see instead?
Based on the MySQL documents:
The problem relies on this part of the code. The
FLUSH TABLES WITH READ LOCK;
is executed by a client and afterward it exits, therefore the lock is released.I will make a pull request that mysqldump take responsibility for locking the tables and finding the binlog position.
Additional information
No response
The text was updated successfully, but these errors were encountered: