Bug #110569 | Contribution by Tencent: Clone plugin sometimes failed, errno 22 | ||
---|---|---|---|
Submitted: | 30 Mar 2023 12:53 | Modified: | 8 Jan 2024 9:04 |
Reporter: | Yin Peng (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Clone Plugin | Severity: | S3 (Non-critical) |
Version: | 8.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[30 Mar 2023 12:53]
Yin Peng
[30 Mar 2023 12:54]
Yin Peng
Set the correct file type when calling 'os_file_create'. (*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: patch.txt (text/plain), 891 bytes.
[30 Mar 2023 13:20]
MySQL Verification Team
Hi Mr. Peng, Thank you for your bug report. We have managed to repeat the problem. We are also thanking you for your contribution. Verified as reported.
[30 Mar 2023 13:21]
MySQL Verification Team
A change of the couple of flags.
[4 Aug 2023 22:27]
Jon Stephens
Documented fix as follows in the MySQL 8.0.35 and 8.2.0 changelogs: Clone_Snapshot::extend_and_flush_files() always created files of type OS_CLONE_DATA_FILE. This function uses flush_redo() to handle redo log files, which must be of type OS_CLONE_LOG_FILE, which could sometimes lead to errors in os_file_set_size(). This problem is now fixed by ensuring that the type is set correctly when creating the new file. Our thanks to Tencent for the contribution. Closed.
[7 Aug 2023 12:48]
MySQL Verification Team
Thank you, Jon.
[8 Jan 2024 9:09]
MySQL Verification Team
Bug #113548 marked as duplicate of this one
[8 Jan 2024 11:29]
MySQL Verification Team
Hi, Since the internally filed bug report is closed, so this bug report is closed as well.