[MDEV-14608] mysqlbinlog lastest backupfile size is 0 Created: 2017-12-08 Updated: 2022-03-29 Resolved: 2022-03-29 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients |
| Affects Version/s: | 10.1, 10.2.11 |
| Fix Version/s: | 10.2.44, 10.3.35, 10.4.25, 10.5.16, 10.6.8, 10.7.4, 10.8.3 |
| Type: | Bug | Priority: | Critical |
| Reporter: | tanqingru | Assignee: | Brandon Nesterenko |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
CentOS7.3, CentOS7.4 |
||
| Description |
|
In centos7.3,7.4 , mariadb (10.1.28,10.1.29,10.2.11,)has the following problem: comand like this: lastest backupfile size is 0:
OTHER: |
| Comments |
| Comment by Elena Stepanova [ 2017-12-12 ] |
|
Thanks for the report. I'm not sure about the difference on different versions of CentOS, but the problem is reproducible on my machine (Debian Jessie) with 10.1 and 10.2, and not reproducible on the same machine with MySQL 5.7. |
| Comment by Sachin Setiya (Inactive) [ 2018-10-21 ] |
|
I think this is is not a bug , Actually culprit is fwrite , which buffers the data |
| Comment by Andrei Elkin [ 2020-12-15 ] |
|
sachin.setiya.007 You mention fflush is not done. Probably it's not done too when there's nothing to retrieve from |
| Comment by Brandon Nesterenko [ 2021-09-22 ] |
|
Hi Andrei, This is ready for review. Commit: ff5a568 |
| Comment by Andrei Elkin [ 2022-03-24 ] |
|
Analyzed, reviewed. |
| Comment by Andrei Elkin [ 2022-03-24 ] |
|
bnestere, the patch looks good. Thanks for taking the time on it. I also spent a little time figuring out if fflush could be executed |
| Comment by Brandon Nesterenko [ 2022-03-29 ] |
|
Manual cherry picking resulted in no merge conflicts in later versions. |