[MDEV-13789] mariabackup galera SST fail Created: 2017-09-13 Updated: 2022-01-27 Resolved: 2022-01-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Galera SST |
| Affects Version/s: | 10.2.7 |
| Fix Version/s: | 10.1.31, 10.2.14 |
| Type: | Bug | Priority: | Major |
| Reporter: | TAO ZHOU | Assignee: | Julius Goryavsky |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | contribution, foundation | ||
| Environment: |
FreeBSD 11.1 |
||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
I am running mariadb 10.2.7 mulit-master with 3 nodes. On the joiner node, I get the following error: mbstream: Can't create/write to file './ib_logfile0' (Errcode: 2 "No such file or directory") I tried to change the streaming method to tar in wsrep_sst_mariabackup and it seems mariabackup only support xbstream. |
| Comments |
| Comment by TAO ZHOU [ 2017-09-14 ] | |||||||||||||||||||||||||||||
|
I have made it work. Simple fix is move 'mkdir -p ${DATA}/.ssh' after the cleanup.
| |||||||||||||||||||||||||||||
| Comment by Andrii Nikitin (Inactive) [ 2017-09-21 ] | |||||||||||||||||||||||||||||
|
I definitely see good reasoning here, but .sst folder should be excluded from `find` command according to '$cpat' value defined in the script earlier.
Last line doesn't print .sst folder , so find command wouldn't attempt to clean it up. After writing conclusions above (and basing on my previous bash experience) - I decided to try the same commands depending on bash nullglob configuration:
Is there chance that line "shopt -s nullglob" present somewhere in .bashrc or similar places in your environment? Could you try the same commands in your environment and confirm if you observe the same behavior with default nullglob ?
| |||||||||||||||||||||||||||||
| Comment by TAO ZHOU [ 2017-09-23 ] | |||||||||||||||||||||||||||||
|
What bash version you were using? I was running it on freebsd. Maybe I was using csh. Is find command buit-in inside the shell? I found it was not the problem with the $cpat, but the '-o' option. Because with -o, it always deletes everything, no matter what regex you put there. This also removes grastate and gvwstate.dat, causing further issues. | |||||||||||||||||||||||||||||
| Comment by Andrii Nikitin (Inactive) [ 2017-09-25 ] | |||||||||||||||||||||||||||||
|
I've checked csh on FreeBSD 11.1 and after commands below find ignores .sst folder, so problem not in '-o' option
| |||||||||||||||||||||||||||||
| Comment by TAO ZHOU [ 2017-10-11 ] | |||||||||||||||||||||||||||||
|
Hi Andrii, If I use '.*\.sst$', I got the same result as you did. But it didn't work with $cpat.
I think the BSD find might use different regular expressions because I tried installing gnu find and it worked.
$ | |||||||||||||||||||||||||||||
| Comment by TAO ZHOU [ 2017-10-11 ] | |||||||||||||||||||||||||||||
|
After some testing, I found the following command works in FreeBSD. And you cannot escape the OR operator "|".
| |||||||||||||||||||||||||||||
| Comment by Daniel Black [ 2018-01-30 ] | |||||||||||||||||||||||||||||
|
commit https://github.com/MariaDB/server/pull/560/commits/be83785d7363f1792d0be8a2e9c9b59c8e01392e corrected this for wsrep_sst_xtrabackup-v2. Because | |||||||||||||||||||||||||||||
| Comment by Julius Goryavsky [ 2022-01-25 ] | |||||||||||||||||||||||||||||
|
Closed as this issue has been fixed for a long time (back in 10.1.31 and 10.2.14) and this fix has already been migrated to all other versions, however the new fix for |