PageRenderTime 42ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/mysql-test/suite/galera/suite.pm

https://gitlab.com/Cona/server
Perl | 77 lines | 68 code | 9 blank | 0 comment | 2 complexity | 858533c00c85c074abef5faf4d55fd90 MD5 | raw file
  1. package My::Suite::GALERA;
  2. use File::Basename;
  3. use My::Find;
  4. @ISA = qw(My::Suite);
  5. return "Not run for embedded server" if $::opt_embedded_server;
  6. return "WSREP is not compiled in" unless defined $::mysqld_variables{'wsrep-on'};
  7. my ($provider) = grep { -f $_ } $ENV{WSREP_PROVIDER},
  8. "/usr/lib/galera/libgalera_smm.so",
  9. "/usr/lib64/galera/libgalera_smm.so";
  10. return "No wsrep provider library" unless -f $provider;
  11. $ENV{WSREP_PROVIDER} = $provider;
  12. my ($spath) = grep { -f "$_/wsrep_sst_rsync"; } "$::bindir/scripts", $::path_client_bindir;
  13. return "No SST scripts" unless $spath;
  14. my ($epath) = grep { -f "$_/my_print_defaults"; } "$::bindir/extra", $::path_client_bindir;
  15. return "No my_print_defaults" unless $epath;
  16. push @::global_suppressions,
  17. (
  18. qr(WSREP: wsrep_sst_receive_address is set to '127.0.0.1),
  19. qr(WSREP: Could not open saved state file for reading: .*),
  20. qr(WSREP: Could not open state file for reading: .*),
  21. qr(WSREP: Gap in state sequence. Need state transfer.),
  22. qr(WSREP: Failed to prepare for incremental state transfer:),
  23. qr(WSREP:.*down context.*),
  24. qr(WSREP: Failed to send state UUID:),
  25. qr(WSREP: last inactive check more than .* skipping check),
  26. qr(WSREP: SQL statement was ineffective),
  27. qr(WSREP: Releasing seqno [0-9]* before [0-9]* was assigned.),
  28. qr|WSREP: access file\(.*gvwstate.dat\) failed\(No such file or directory\)|,
  29. qr(WSREP: Quorum: No node with complete state),
  30. qr(WSREP: Initial position was provided by configuration or SST, avoiding override),
  31. qr|WSREP: discarding established \(time wait\) .*|,
  32. 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.),
  33. qr(WSREP: evs::proto.*),
  34. qr|WSREP: Ignoring possible split-brain \(allowed by configuration\) from view:.*|,
  35. qr(WSREP: no nodes coming from prim view, prim not possible),
  36. qr(WSREP: Member .* requested state transfer from .* but it is impossible to select State Transfer donor: Resource temporarily unavailable),
  37. qr(WSREP: user message in state LEAVING),
  38. qr(WSREP: .* sending install message failed: Transport endpoint is not connected),
  39. qr(WSREP: .* sending install message failed: Resource temporarily unavailable),
  40. qr(WSREP: Maximum writeset size exceeded by .*),
  41. qr(WSREP: transaction size exceeded.*),
  42. qr(WSREP: RBR event .*),
  43. qr(WSREP: Ignoring error for TO isolated action: .*),
  44. qr(WSREP: transaction size limit .*),
  45. qr(WSREP: rbr write fail, .*),
  46. qr(WSREP: .*Backend not supported: foo.*),
  47. qr(WSREP: .*Failed to initialize backend using .*),
  48. qr(WSREP: .*Failed to open channel 'my_wsrep_cluster' at .*),
  49. qr(WSREP: gcs connect failed: Socket type not supported),
  50. qr(WSREP: failed to open gcomm backend connection: 110: failed to reach primary view: 110 .*),
  51. qr(WSREP: .*Failed to open backend connection: -110 .*),
  52. qr(WSREP: .*Failed to open channel 'my_wsrep_cluster' at .*),
  53. qr(WSREP: gcs connect failed: Connection timed out),
  54. qr|WSREP: wsrep::connect\(.*\) failed: 7|,
  55. qr(WSREP: SYNC message from member .* in non-primary configuration. Ignored.),
  56. qr(WSREP: Could not find peer:),
  57. qr(WSREP: TO isolation failed for: .*),
  58. qr|WSREP: gcs_caused\(\) returned .*|,
  59. qr|WSREP: Protocol violation. JOIN message sender .* is not in state transfer \(SYNCED\). Message ignored.|,
  60. qr(WSREP: Action message in non-primary configuration from member [0-9]*),
  61. );
  62. $ENV{PATH}="$epath:$ENV{PATH}";
  63. $ENV{PATH}="$spath:$ENV{PATH}" unless $epath eq $spath;
  64. bless { };