koha-dump should use the --single-transaction flag, like misc/cronjobs/backup.sh does. This is to avoid koha-dump locking up the whole database. More information on the single-transaction flag can be found here: https://dev.mysql.com/doc/refman/5.7/en/mysqldump.html#option_mysqldump_single-transaction
Created attachment 133203 [details] [review] Bug 30511: Don't lock up entire database while running koha-dump Test plan: 1. Apply the patch 2. Restart services 3. Run koha-dump 4. Confirm the .sql.gz and .tar.gz files are generated successfully Sponsored-by: Catalyst IT
Created attachment 133204 [details] [review] Bug 30511: Don't lock up entire database while running koha-dump Test plan: 1. Apply the patch 2. Restart services 3. Run koha-dump 4. Confirm the .sql.gz and .tar.gz files are generated successfully Sponsored-by: Catalyst IT Signed-off-by: David Cook <dcook@prosentient.com.au>
I've been using this in production for a while and it's been great.
Created attachment 134347 [details] [review] Bug 30511: Don't lock up entire database while running koha-dump Test plan: 1. Apply the patch 2. Restart services 3. Run koha-dump 4. Confirm the .sql.gz and .tar.gz files are generated successfully Sponsored-by: Catalyst IT Signed-off-by: David Cook <dcook@prosentient.com.au> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
We could do so since we do no longer have a mix of InnoDB and MyISAM tables. This produces a coherent dump for InnoDB tables.
Pushed to master for 22.05, thanks to everybody involved [U+1F984]