1. 19 Nov, 2014 1 commit
    • Kristian Nielsen's avatar
      MDEV-7026: Race in InnoDB/XtraDB mutex implementation can stall or hang the server. · 6ea41f1e
      Kristian Nielsen authored
      The bug was that full memory barrier was missing in the code that ensures that
      a waiter on an InnoDB mutex will not go to sleep unless it is guaranteed to be
      woken up again by another thread currently holding the mutex. This made
      possible a race where a thread could get stuck waiting for a mutex that is in
      fact no longer locked. If that thread was also holding other critical locks,
      this could stall the entire server. There is an error monitor thread than can
      break the stall, it runs about once per second. But if the error monitor
      thread itself got stuck or was not running, then the entire server could hang
      infinitely.
      
      This was introduced on i386/amd64 platforms in 5.5.40 and 10.0.13 by an
      incorrect patch that tried to fix the similar problem for PowerPC.
      
      This commit reverts the incorrect PowerPC patch, and instead implements a fix
      for PowerPC that does not change i386/amd64 behaviour, making PowerPC work
      similarly to i386/amd64.
      6ea41f1e
  2. 18 Nov, 2014 11 commits
  3. 15 Nov, 2014 1 commit
  4. 14 Nov, 2014 2 commits
  5. 13 Nov, 2014 4 commits
  6. 12 Nov, 2014 3 commits
  7. 10 Nov, 2014 3 commits
  8. 08 Nov, 2014 2 commits
  9. 17 Nov, 2014 3 commits
  10. 15 Nov, 2014 1 commit
  11. 13 Nov, 2014 4 commits
    • Sergey Petrunya's avatar
      Merge 5.3->5.5 · 665a7c83
      Sergey Petrunya authored
      665a7c83
    • Sergey Petrunya's avatar
      MDEV-7068: MRR accessing uninitialised bytes, test case failure main.innodb_mrr · 06c7f493
      Sergey Petrunya authored
      - Don't call index_reader->interrupt_read() if the
        index reader has returned all rows that matched its keys.
      06c7f493
    • Jan Lindström's avatar
      MDEV-7100: InnoDB error monitor might unnecessary wait log_sys mutex · 8c7ef99b
      Jan Lindström authored
      Analysis: InnoDB error monitor is responsible to call every second
      sync_arr_wake_threads_if_sema_free() to wake up possible hanging 
      threads if they are missed in mutex_signal_object. This is not 
      possible if error monitor itself is on mutex/semaphore wait. We 
      should avoid all unnecessary mutex/semaphore waits on error monitor.
      Currently error monitor calls function buf_flush_stat_update() 
      that calls log_get_lsn() function and there we will try to get 
      log_sys mutex. Better, solution for error monitor is that in 
      buf_flush_stat_update() we will try to get lsn with 
      mutex_enter_nowait() and if we did not get mutex do not update 
      the stats.
      
      Fix: Use log_get_lsn_nowait() function on buf_flush_stat_update()
      function. If returned lsn is 0, we do not update flush stats. 
      log_get_lsn_nowait() will use mutex_enter_nowait() and if
      we get mutex we return a correct lsn if not we return 0.
      8c7ef99b
    • Kristian Nielsen's avatar
      MDEV-7103: Sporadic test falure in rpl.rpl_parallel_show_binlog_events_purge_logs · 356451fc
      Kristian Nielsen authored
      The test case had a classic mistake: SET DEBUG_SYNC='now SIGNAL xxx'
      followed immediately by SET DEBUG_SYNC='RESET'. This makes it
      possible for the waiter to miss the signal, if it does not manage
      to wake up prior to the RESET.
      356451fc
  12. 12 Nov, 2014 1 commit
    • Kristian Nielsen's avatar
      MDEV-7089: Test failures in main.failed_auth_unixsocket and... · 3180e762
      Kristian Nielsen authored
      MDEV-7089: Test failures in main.failed_auth_unixsocket and plugins.unix_socket depending on environment
      
      The test cases had some --replace_result $USER USER. The problem is that the
      value of $USER can be anything, depending on the name of the unix account that
      runs the test suite. So random parts of the result can be errorneously
      replaced, causing test failures.
      
      Fix by making the replacements more specific, so they will match only the
      intended stuff regardless of the value of $USER.
      
      3180e762
  13. 10 Nov, 2014 1 commit
  14. 08 Nov, 2014 2 commits
  15. 07 Nov, 2014 1 commit