Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Can't change ownership of the file during trim binlog (#1107)
Summary: Mysqld error log: > 2019-10-29 21:08:57 3013526 [ERROR] Taking backup from binary-logs-3306.000003 to binlog_backup.trunc �mysqld: Can't change ownership of the file 'binary-logs-3306.000003' (Errcode: 1 - Operation not permitted) 2019-10-29 21:08:58 3013526 [ERROR] Could not take backup of the truncated binlog file binary-logs-3306.000003 2019-10-29 21:08:58 3013526 [Note] Crashed binlog file binary-logs-3306.000003 size is 189413002, but recovered up to 189412705. Binlog trimmed to 189412705 bytes. 2019-10-29 21:08:58 3013526 [Note] [rpl_wait_for_semi_sync_ack] Last ACKed pos initialized to: binary-logs-3306.000003:189418122 This issue is caused by mysqld is running under mysql user instead of root user. We copy these files for diagnostic purpose and it should be ok to don't change ownership. :) Reference Patch: 8ee8ebe Squash with D18812324 Pull Request resolved: #1107 Reviewed By: luqun Differential Revision: D19876689 Pulled By: luqun fbshipit-source-id: 6a3d4f2
- Loading branch information