2015-01-16 19:53:23 +01:00
|
|
|
package My::Suite::GALERA;
|
|
|
|
use File::Basename;
|
|
|
|
use My::Find;
|
|
|
|
|
|
|
|
@ISA = qw(My::Suite);
|
|
|
|
|
|
|
|
return "Not run for embedded server" if $::opt_embedded_server;
|
|
|
|
|
|
|
|
return "WSREP is not compiled in" unless defined $::mysqld_variables{'wsrep-on'};
|
|
|
|
|
|
|
|
my ($provider) = grep { -f $_ } $ENV{WSREP_PROVIDER},
|
|
|
|
"/usr/lib/galera/libgalera_smm.so",
|
|
|
|
"/usr/lib64/galera/libgalera_smm.so";
|
|
|
|
|
|
|
|
return "No wsrep provider library" unless -f $provider;
|
|
|
|
|
|
|
|
$ENV{WSREP_PROVIDER} = $provider;
|
|
|
|
|
|
|
|
my ($spath) = grep { -f "$_/wsrep_sst_rsync"; } "$::bindir/scripts", $::path_client_bindir;
|
|
|
|
return "No SST scripts" unless $spath;
|
|
|
|
|
|
|
|
my ($epath) = grep { -f "$_/my_print_defaults"; } "$::bindir/extra", $::path_client_bindir;
|
|
|
|
return "No my_print_defaults" unless $epath;
|
|
|
|
|
|
|
|
push @::global_suppressions,
|
|
|
|
(
|
2015-01-27 04:48:02 +01:00
|
|
|
qr(WSREP: wsrep_sst_receive_address is set to '127.0.0.1),
|
|
|
|
qr(WSREP: Could not open saved state file for reading: ),
|
|
|
|
qr(WSREP: Gap in state sequence. Need state transfer.),
|
|
|
|
qr(WSREP: Failed to prepare for incremental state transfer:),
|
2015-01-16 19:53:23 +01:00
|
|
|
qr(WSREP:.*down context.*),
|
2015-01-27 04:48:02 +01:00
|
|
|
qr(WSREP: Failed to send state UUID:),
|
2015-01-16 19:53:23 +01:00
|
|
|
qr(WSREP: last inactive check more than .* skipping check),
|
2015-01-27 04:48:02 +01:00
|
|
|
qr(WSREP: SQL statement was ineffective),
|
2015-01-27 22:54:24 +01:00
|
|
|
qr(WSREP: Releasing seqno [0-9]* before [0-9]* was assigned.),
|
2015-02-19 00:59:01 +01:00
|
|
|
qr|WSREP: access file\(gvwstate.dat\) failed\(No such file or directory\)|,
|
2015-04-21 19:17:17 +02:00
|
|
|
qr(WSREP: Quorum: No node with complete state),
|
|
|
|
qr(WSREP: Initial position was provided by configuration or SST, avoiding override),
|
|
|
|
qr|WSREP: discarding established \(time wait\) .*|,
|
|
|
|
qr(WSREP: There are no nodes in the same segment that will ever be able to become donors, yet there is a suitable donor outside. Will use that one.),
|
|
|
|
qr(WSREP: evs::proto.*),
|
|
|
|
qr|WSREP: Ignoring possible split-brain \(allowed by configuration\) from view:.*|,
|
|
|
|
qr(WSREP: no nodes coming from prim view, prim not possible),
|
|
|
|
qr(WSREP: Member .* requested state transfer from .* but it is impossible to select State Transfer donor: Resource temporarily unavailable),
|
|
|
|
qr(WSREP: user message in state LEAVING),
|
|
|
|
qr(WSREP: .* sending install message failed: Transport endpoint is not connected),
|
2015-05-12 22:56:06 +02:00
|
|
|
qr(WSREP: .* sending install message failed: Resource temporarily unavailable),
|
2015-04-21 19:17:17 +02:00
|
|
|
qr(WSREP: Maximum writeset size exceeded by .*),
|
2015-04-28 17:53:57 +02:00
|
|
|
qr(WSREP: transaction size exceeded.*),
|
2015-04-21 19:17:17 +02:00
|
|
|
qr(WSREP: RBR event .*),
|
|
|
|
qr(WSREP: Ignoring error for TO isolated action: .*),
|
2015-04-28 17:53:57 +02:00
|
|
|
qr(WSREP: transaction size limit .*),
|
|
|
|
qr(WSREP: rbr write fail, .*),
|
|
|
|
qr(WSREP: .*Backend not supported: foo.*),
|
|
|
|
qr(WSREP: .*Failed to initialize backend using .*),
|
|
|
|
qr(WSREP: .*Failed to open channel 'my_wsrep_cluster' at .*),
|
|
|
|
qr(WSREP: gcs connect failed: Socket type not supported),
|
|
|
|
qr(WSREP: failed to open gcomm backend connection: 110: failed to reach primary view: 110 .*),
|
|
|
|
qr(WSREP: .*Failed to open backend connection: -110 .*),
|
|
|
|
qr(WSREP: .*Failed to open channel 'my_wsrep_cluster' at .*),
|
|
|
|
qr(WSREP: gcs connect failed: Connection timed out),
|
|
|
|
qr|WSREP: wsrep::connect\(\) failed: 7|,
|
2015-05-12 22:56:06 +02:00
|
|
|
qr(WSREP: SYNC message from member .* in non-primary configuration. Ignored.),
|
|
|
|
qr(WSREP: Could not find peer:),
|
2015-01-16 19:53:23 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
$ENV{PATH}="$epath:$ENV{PATH}";
|
|
|
|
$ENV{PATH}="$spath:$ENV{PATH}" unless $epath eq $spath;
|
|
|
|
|
|
|
|
bless { };
|
|
|
|
|