1. 03 Apr, 2018 3 commits
    • Daniele Sciascia's avatar
      MW-405 Adjust galera_pc_weight to new wait_until_connected_again · 54652161
      Daniele Sciascia authored
      Test galera_3nodes.galera_pc_weight started to fail because it
      expects to use wait_until_connected_again while remaining in
      non-primary view. Hopefully this is the only test which makes
      this assumption, and fortunately those wait_until_connected_again
      seem unnecessary, so this patch removes them.
      54652161
    • Daniele Sciascia's avatar
      MW-405 Remove redundant conditions · fc26fd1c
      Daniele Sciascia authored
      Remove clause on `thd->variables.wsrep_on` in the following code:
      
      if (WSREP(thd))
      {
      ...
              if (thd->variables.wsrep_on &&
                  ...
      
      In the above snippet, `WSREP(thd)` already ensures thd->variables.wsrep_on
      fc26fd1c
    • Daniele Sciascia's avatar
      MW-405 Make sure wsrep is ready in wait_until_connected_again.inc · d970f805
      Daniele Sciascia authored
      wait_until_connected_again issues 'SHOW STATUS' query repeatedly
      until mysqld replies without errors.
      However, SHOW STATUS is treated specially by wsrep in that it is
      allowed to proceed even if wsrep is not yet in ready state. As a
      consequence, after returning from wait_until_connected_again,
      wsrep may not be ready yet and subsequent queries may fail with
      error "1047 WSREP has not yet prepared node for application use".
      To avoid those errors, the patch includes wait_wsrep_ready.inc at
      the end of the wait_until_connected_again.
      d970f805
  2. 29 Mar, 2018 1 commit
  3. 28 Mar, 2018 3 commits
  4. 27 Mar, 2018 3 commits
    • Daniel Bartholomew's avatar
      bump the VERSION · db16ae54
      Daniel Bartholomew authored
      db16ae54
    • Daniele Sciascia's avatar
      MDEV-13549 Fix and re-enable MTR test galera.galera_as_master · 58fad040
      Daniele Sciascia authored
      Was failing due to missing RESET MASTER
      58fad040
    • Daniele Sciascia's avatar
      MDEV-13549 Fix and re-enable test galera.galera_suspend_slave · 832025b5
      Daniele Sciascia authored
      Test galera_suspend_slave checks that after suspending a galera
      node, like this:
      ```
      --perl
              my $pid_filename = $ENV{'NODE_2_PIDFILE'};
              my $mysqld_pid = `cat $pid_filename`;
              chomp($mysqld_pid);
              system("kill -SIGSTOP $mysqld_pid");
              exit(0);
      EOF
      ```
      
      the remaining one node cluster is no longer able to successfully
      INSERT new rows:
      ```
      --error ER_UNKNOWN_COM_ERROR,ER_LOCK_WAIT_TIMEOUT,ER_LOCK_DEADLOCK,ER_ERROR_DURING_COMMIT
      INSERT INTO t1 VALUES (1);
      ```
      
      On rare occasions when the system is overloaded, it appears that
      suspending the process with ```system("kill -SIGSTOP $mysqld_pid")```
      takes some time, enough for the subsequent INSERT to succeed. In which
      case the test fails because it rightly expects the INSERT to fail.
      
      To fix the problem, the patch makes sure that the cluster has shrinked
      to one node, before trying to INSERT the new value.
      832025b5
  5. 26 Mar, 2018 5 commits
  6. 24 Mar, 2018 3 commits
  7. 23 Mar, 2018 7 commits
  8. 22 Mar, 2018 14 commits
  9. 21 Mar, 2018 1 commit