Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDEV-13909 Fix wsrep_sst_rsync fails on debian #458

Merged
merged 1 commit into from
Oct 4, 2017
Merged

MDEV-13909 Fix wsrep_sst_rsync fails on debian #458

merged 1 commit into from
Oct 4, 2017

Conversation

darkain
Copy link
Contributor

@darkain darkain commented Oct 2, 2017

Fix for the following error messages during SST:
/usr/local/mysql/bin/wsrep_sst_rsync: 258: /usr/local/mysql/bin/wsrep_sst_rsync: [[: not found
/usr/local/mysql/bin/wsrep_sst_rsync: 263: /usr/local/mysql/bin/wsrep_sst_rsync: [[: not found
/usr/local/mysql/bin/wsrep_sst_rsync: 268: /usr/local/mysql/bin/wsrep_sst_rsync: [[: not found

Fix for the following error messages during SST:
/usr/local/mysql/bin/wsrep_sst_rsync: 258: /usr/local/mysql/bin/wsrep_sst_rsync: [[: not found
/usr/local/mysql/bin/wsrep_sst_rsync: 263: /usr/local/mysql/bin/wsrep_sst_rsync: [[: not found
/usr/local/mysql/bin/wsrep_sst_rsync: 268: /usr/local/mysql/bin/wsrep_sst_rsync: [[: not found
@svoj svoj added this to the 10.0 milestone Oct 3, 2017
@svoj
Copy link

svoj commented Oct 3, 2017

@darkain, thanks for your contribution! Could you confirm you contribute the whole pull request under MCA?

@darkain
Copy link
Contributor Author

darkain commented Oct 3, 2017

Yes, confirmed MCA contribution for this PR

@janlindstrom janlindstrom merged commit bb62a0a into MariaDB:10.0-galera Oct 4, 2017
@svoj svoj assigned janlindstrom and unassigned SachinSetiya Oct 4, 2017
@darkain darkain deleted the patch-1 branch October 4, 2017 06:22
@vuvova
Copy link
Member

vuvova commented Oct 4, 2017

@darkain could you explain how this error could've happened?

wsrep_sst_rsync starts from #!/bin/bash -ue, and then it sources wsrep_sst_common. I'd expect wsrep_sst_common to be interpreted by bash, so [[ should've worked just fine.

If wsrep_sst_rsync gets somehow interpreted by /bin/sh we'll need to fix all other sst scripts not to use [[ either.

@darkain
Copy link
Contributor Author

darkain commented Oct 4, 2017

@vuvova Actually looking at it just now, wsrep_sst_rsync.sh starts with #!/bin/sh -ue - and my guess is because FreeBSD Jails have /bin/sh but not /bin/bash

https://github.com/MariaDB/server/blob/10.2/scripts/wsrep_sst_rsync.sh#L1

@vuvova
Copy link
Member

vuvova commented Oct 5, 2017

Right. I was looking at 10.1 and 10.0, but in 10.2 it's /bin/sh, changed in f16ead51fbbf03ca51d (and, you're right, it was for FreeBSD).

Okay, then I'll change all other sst scripts too.

@eembsen
Copy link

eembsen commented Nov 6, 2017

Good morning @vuvova

I get this message with the MariaDB 10.3.2 Docker image:

mariadb02_1  | 2017-11-05 22:13:53 0 [Note] WSREP: (cecc4da4, 'tcp://0.0.0.0:4567') turning message relay requesting off
mariadb02_1  | WSREP_SST: [INFO] Joiner cleanup done. (20171105 22:13:54.059)
mariadb02_1  | 2017-11-05 22:13:54 0 [Note] WSREP: SST complete, seqno: 7113
mariadb01_1  | /usr//bin/wsrep_sst_rsync: 263: /usr//bin/wsrep_sst_rsync: [[: not found
mariadb01_1  | /usr//bin/wsrep_sst_rsync: 268: /usr//bin/wsrep_sst_rsync: [[: not found

Do I have to revert to 10.2.10? Or can I wait for version 10.3.3?

Cheers,
Erwin

@eembsen
Copy link

eembsen commented Nov 6, 2017

Hi @vuvova, just checked the 10.2.10 Docker hub image, to no avail :-(

@vuvova
Copy link
Member

vuvova commented Nov 6, 2017

10.2.10 has the same issue. The fix (commit 98e09ee) is still only in 10.0-galera branch, waiting to be merged into 10.1 branch, then to 10.2 branch and then to 10.3 branch.

At the moment it's not in any release yet, I think.

@eembsen
Copy link

eembsen commented Nov 6, 2017

@vuvova Ok, thanks for the info. I hope that it soon will be available in the official MariaDB docker images. In the mean time I am going to patch the 10.3.2 image locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants