[MDEV-29893] SST fails when having datadir set to a symlink to actual data directory Created: 2022-10-27 Updated: 2023-12-07 Resolved: 2023-10-13 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Galera, Galera SST |
| Affects Version/s: | 10.3.36, 10.4.26, 10.5.17, 10.10.1, 10.6.10, 10.7.6, 10.8.5, 10.9.3 |
| Fix Version/s: | 10.4.32, 10.5.23, 10.6.16, 10.10.7, 10.11.6, 11.0.4, 11.1.3, 11.2.2, 11.3.1 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Hartmut Holzgraefe | Assignee: | Julius Goryavsky |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
When having datadir pointing at a symbolic link to the actual data directory instead of the data directory itself an SST attempt using the mariabackup method fails on the --move-back step as the data directory still contains files like "ibdata1". Looks as if the data directory purging step early in the SST workflow fails to detect that there are actual files still present in the data directory, wrongly interpreting a symbolic link as an empty directory. How to reproduce:
The node will start to perform a SST, but will fail at the mariabackup --move-back step with e.g.:
This seems to have started with MariaDB 10.3, with 10.2 I can see the datadir being purged and SST succeeding even when using a symlink for datadir |
| Comments |
| Comment by Claudio Nanni [ 2023-09-11 ] | |||||||||||||||||||||||||
|
`find` does not follow the symlink when deleting the content of the datadir. wsrep_sst_mariabackup:1429
-L option should solve this.
|