Ignore not found error when rotating log file #4971
Do not return not found error when log file was deleted before rotate.
Signed-off-by: Xiaoguang Sun email@example.com
What have you changed? (mandatory)
Do not return error when log file is deleted before rotating. Although I doubt if we really need to return any error at here. It is definitely better to be conservative and only skip std::io::ErrorKind::NotFound at this time.
Please explain IN DETAIL what the changes are in this PR and why they are needed:
Please NOTE that:
What are the type of the changes? (mandatory)
How has this PR been tested? (mandatory)
Unit test has been updated to validate the change.
Does this PR affect documentation (docs) or release note? (mandatory)
Does this PR affect tidb-ansible update? (mandatory)
If there is a configuration or metrics change, please file a PR in [tidb-ansible]
Refer to a related PR or issue link (optional)
Benchmark result if necessary (optional)
Add a few positive/negative examples (optional)