[MDEV-27524] Incorrect binlogs after Galera SST using rsync and mariabackup Created: 2022-01-17 Updated: 2023-05-25 Resolved: 2022-02-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Galera SST, mariabackup |
| Affects Version/s: | 10.2.41, 10.3.32, 10.4.22, 10.5.13, 10.6.5, 10.7.1 |
| Fix Version/s: | 10.9.0, 10.3.35, 10.4.25, 10.5.16, 10.6.8, 10.7.4, 10.8.3 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Julius Goryavsky | Assignee: | Julius Goryavsky |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
In many scenarios, nodes crash after SST if the donor node uses multiple binlogs files and then SST is performed using rsync or mariabackup. Especially often the failure occurs after accessing binlogs from the joiner side. These failures are due to the fact that currently neither SST with rsync nor SST with mariabackup transfers all binlogs (not just the latest one), and the binlogs handling code in SST scripts is very simplistic and cannot correctly work in a number of configurations, for example, in configurations including absolute paths to binlogs in an index file, etc. An example of such a failure due to incorrect transmission of binlogs after SST:
|
| Comments |
| Comment by Jan Lindström (Inactive) [ 2022-01-18 ] |
|
Code changes are ok, you could have avoided white space changes on mariabackup. However, rsync method seems to still have problems based on buildbot. |
| Comment by Brandon Nesterenko [ 2022-01-20 ] |
|
The refinements look good. I left a couple minor suggestions on the new commit, feel free to push after their consideration. |
| Comment by Jan Lindström (Inactive) [ 2022-01-26 ] |
|
mariabackup, test and script changes ok to push |
| Comment by Jan Lindström (Inactive) [ 2022-01-26 ] |
|
serg Can you review https://github.com/MariaDB/server/commit/6777c260c22e16fb9a76a60f124c2d9337d04585 . My Perl knowledge is too thin to make any kind of review. |
| Comment by Brandon Nesterenko [ 2022-01-27 ] |
|
I left one last question, otherwise it looks good. Thanks! |
| Comment by Julius Goryavsky [ 2022-02-22 ] |
|
Fixed, https://github.com/MariaDB/server/commit/17e0f5224c8339ec08707a6ad0397bbf8c19bbd3 |