[MDEV-6617] Improve Galera scripts Created: 2014-08-21  Updated: 2015-01-08  Resolved: 2015-01-08

Status: Closed
Project: MariaDB Server
Component/s: Galera, Galera SST
Affects Version/s: 5.5.38-galera, 10.0.12-galera
Fix Version/s: 5.5.41-galera

Type: Bug Priority: Minor
Reporter: Jan Lindström (Inactive) Assignee: Nirbhay Choubey (Inactive)
Resolution: Won't Fix Votes: 0
Labels: galera


 Description   

Many Galera scripts assumes that my_print_defaults and other MariaDB
binaries are in PATH. This might not be true.

  • We can't assume that "mysql" is in the path. We have to search for this like
    we do with my_print_defaults !
  • Checking for version number doesn't guarantee that the binaries are
    compiled with galera.
    Instead you should check if a binary supports any of the required wresp
    options.

You can do this with:
mysql --test-some-option --version
This will fail with an error if the option is not supported.



 Comments   
Comment by Nirbhay Choubey (Inactive) [ 2015-01-07 ]

Hi jplindst!

  • Besides PATH, the only place we look under for client tools and SST scripts is $basedir/bin.
    This path, however, is already prepended by (wsrep-)mysqld before it invokes SST scripts.
  • Regarding "binaries compiled with wsrep" : Since the state transfer is an automatic process
    triggered by server, I don't think any explicit check is needed for wsrep-support.

Said that, I do not see there is anything to work on in this regard.

Comment by Nirbhay Choubey (Inactive) [ 2015-01-08 ]

See my comment above.

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