[MDEV-6492] MariaDB Galera Cluster cant use rsync sst Created: 2014-07-27  Updated: 2014-08-02  Resolved: 2014-08-02

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.0.12-galera
Fix Version/s: 10.0.13-galera

Type: Bug Priority: Major
Reporter: erkan yanar Assignee: Nirbhay Choubey (Inactive)
Resolution: Fixed Votes: 0
Labels: galera, sst
Environment:

ubuntu 14.04
lxc



 Description   

wsrep_sst_rsync can't be used.

Jul 27 01:38:25 mgc_1 mysqld: 140727  1:38:25 [Note] WSREP: Tables flushed.
Jul 27 01:38:25 mgc_1 mysqld: 140727  1:38:25 [Warning] WSREP: error executing 'SET GLOBAL innodb_disallow_writes=1': 1193 (Unknown system variable 'innodb_disallow_writes'). Was mysqld built wi
th --with-innodb-disallow-writes ?
Jul 27 01:38:25 mgc_1 mysqld: 140727  1:38:25 [ERROR] WSREP: Failed to disallow InnoDB writes
Jul 27 01:39:08 mgc_1 mysqld: tail: »mysqld-bin.index“ kann nicht zum Lesen geöffnet werden: Datei oder Verzeichnis nicht gefunden
Jul 27 01:39:08 mgc_1 mysqld: 140727  1:39:08 [ERROR] WSREP: Failed to read from: wsrep_sst_rsync --role 'donor' --address '10.0.3.110:4444/rsync_sst' --auth '(null)' --socket '/var/run/mysqld/m
ysqld.sock' --datadir '/var/lib/mysql/' --defaults-file '/etc/mysql/my.cnf'  --binlog 'mysqld-bin' --gtid '061d9f9a-145a-11e4-b219-2b644d4c7e86:0'
Jul 27 01:39:08 mgc_1 mysqld: 140727  1:39:08 [ERROR] WSREP: Process completed with error: wsrep_sst_rsync --role 'donor' --address '10.0.3.110:4444/rsync_sst' --auth '(null)' --socket '/var/run
/mysqld/mysqld.sock' --datadir '/var/lib/mysql/' --defaults-file '/etc/mysql/my.cnf'  --binlog 'mysqld-bin' --gtid '061d9f9a-145a-11e4-b219-2b644d4c7e86:0': 1 (Operation not permitted)
Jul 27 01:39:08 mgc_1 mysqld: 140727  1:39:08 [Warning] WSREP: error executing 'SET GLOBAL innodb_disallow_writes=0': 1193 (Unknown system variable 'innodb_disallow_writes'). Was mysqld built wi
th --with-innodb-disallow-writes ?
Jul 27 01:39:08 mgc_1 mysqld: 140727  1:39:08 [ERROR] WSREP: Failed to disallow InnoDB writes
Jul 27 01:39:08 mgc_1 mysqld: 140727  1:39:08 [Note] WSREP: resuming provider at 25

And yes there is no support for innodb_disallow_writes

ariaDB [(none)]> SET GLOBAL innodb_disallow_writes=1;
ERROR 1193 (HY000): Unknown system variable 'innodb_disallow_writes'

So every sst using "flush tables" is going to fail



 Comments   
Comment by Nirbhay Choubey (Inactive) [ 2014-07-28 ]

We might have to switch to InnoDB as default "InnoDB".

Comment by Nirbhay Choubey (Inactive) [ 2014-07-28 ]

>> Jul 27 01:39:08 mgc_1 mysqld: tail: »mysqld-bin.index“ kann nicht zum Lesen geöffnet werden: Datei oder Verzeichnis nicht gefunden

Why is "mysqld-bin.index" missing?

Comment by erkan yanar [ 2014-07-29 ]

Ahoi Nirbhay,

most likely because wsrep_sst.cc checks for log_bin. So it is going to fail if you can't generate log_bin_index from log_bin

Comment by Nirbhay Choubey (Inactive) [ 2014-07-31 ]

http://lists.askmonty.org/pipermail/commits/2014-July/006383.html

Comment by Jan Lindström (Inactive) [ 2014-08-01 ]

Ok to push.

Comment by Nirbhay Choubey (Inactive) [ 2014-08-02 ]

Fix pushed to maria-10.0-galera.
http://bazaar.launchpad.net/~maria-captains/maria/maria-10.0-galera/revision/3866

Comment by Nirbhay Choubey (Inactive) [ 2014-08-02 ]

It looks like wsrep_sst.cc did get the right binlog suffix... --binlog 'mysqld-bin' .. but wsrep_sst_rsync script couldn't find it :

.. snip ..
binlog_files_full=$(tail -n $BINLOG_N_FILES ${BINLOG_FILENAME}.index)
.. snip ..

Generated at Thu Feb 08 07:12:19 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.