When an error occurs while running mysqldump RDS export (e.g. connection lost), the script doesn't exit. Instead, it keeps working, which results in empty / partial dumps being sent to S3.
It would be the best to try to repeat mysqldump (we're dumping table by table now), maybe with some timeout, to not repeat infinitely.
If that's not possible, let's at least break the execution and throw an error.
When an error occurs while running
mysqldumpRDS export (e.g. connection lost), the script doesn't exit. Instead, it keeps working, which results in empty / partial dumps being sent to S3.It would be the best to try to repeat
mysqldump(we're dumping table by table now), maybe with some timeout, to not repeat infinitely.If that's not possible, let's at least break the execution and throw an error.