1. 13 Apr, 2018 3 commits
  2. 12 Apr, 2018 5 commits
    • Sergei Petrunia's avatar
      MDEV-14460: Memory leak with only SELECT statements · d13e3547
      Sergei Petrunia authored
      Cherry-pick this fix from the upstream:
      commit 6ddedd8f1e0ddcbc24e8f9a005636c5463799ab7
      Author: Sergei Petrunia <psergey@askmonty.org>
      Date:   Tue Apr 10 11:43:01 2018 -0700
      
          [mysql-5.6][PR] Issue #802: MyRocks: Statement rollback doesnt work correctly for nes…
      
          Summary:
          …ted statements
      
          Variant #1: When the statement fails, we should roll back to the latest
          savepoint taken at the top level.
          Closes https://github.com/facebook/mysql-5.6/pull/804
      
          Differential Revision: D7509380
      
          Pulled By: hermanlee
      
          fbshipit-source-id: 9a6f414
      d13e3547
    • Jacob Mathew's avatar
      MDEV-15692: install_spider.sql can fail with some collations · 12e2d039
      Jacob Mathew authored
      The error occurs because of how the character set and collation are chosen for
      stored procedure parameters that have a character data type.  If the character
      set and collation are not explicitly stated in the declaration, the server
      chooses the database character set and collation in effect at routine creation
      time.
      
      To fix the problem, I added explicit character set and collation attributes
      for the stored procedure parameters in the install_spider.sql script.
      
      Author:
        Jacob Mathew.
      
      Reviewer:
        Kentoku Shiba.
      
      Cherry-Picked:
        Commit ff0bf451 on bb-10.3-MDEV-15692
      12e2d039
    • Jan Lindström's avatar
      MDEV-12632: Source and destination overlap in memcpy,... · 36c01167
      Jan Lindström authored
      MDEV-12632: Source and destination overlap in memcpy, encryption.innodb-discard-import-change fails in buildbot with valgrind
      
      Problem was that if tablespace was encrypted we try to copy
      also page 0 from read buffer to write buffer that are in
      that case the same memory area.
      
      fil_iterate
      	When tablespace is encrypted or compressed its
              first page (i.e. page 0) is not encrypted or
      	compressed and there is no need to copy buffer.
      36c01167
    • Jan Lindström's avatar
      MDEV-12903: encryption.innodb_encryption_discard_import fails in buildbot with FOUND vs NOT FOUND · 2f1f1609
      Jan Lindström authored
      Wait until rotation has ended and shutdown before grep to make sure
      that dirty pages are on datafiles.
      2f1f1609
    • Vicențiu Ciorbaru's avatar
      Use same connection convention of specifying IPs · 93aded05
      Vicențiu Ciorbaru authored
      If we use hostnames, it will fail during name resolution on UNIX systems
      93aded05
  3. 11 Apr, 2018 3 commits
  4. 10 Apr, 2018 7 commits
  5. 09 Apr, 2018 7 commits
  6. 08 Apr, 2018 4 commits
    • Vladislav Vaintroub's avatar
      MDEV-15707 : deadlock in Innodb IO code, caused by change buffering. · 7b16291c
      Vladislav Vaintroub authored
      In async IO completion code, after reading a page,Innodb can wait for
      completion of other bufferpool reads.
      This is for example what happens if change-buffering is active.
      
      Innodb on Windows could deadlock, as it did not have dedicated threads
      for processing change buffer asynchronous reads.
      
      The fix for that is to have windows now has the same background threads,
      including dedicated thread for ibuf, and log AIOs.
      
      The ibuf/read completions are now dispatched to their threads with
      PostQueuedCompletionStatus(), the write and log completions are processed
      in thread where they arrive.
      7b16291c
    • Jan Lindström's avatar
      MDEV-13549: Galera test failures · 8bb40f24
      Jan Lindström authored
      Disable more occasionally failing test cases.
      	galera.galera_lock_table
      	galera.galera_gra_log
      	galera.MW-44
      	galera.lp1376747
      	galera.lp1376747-2
      	galera.galera_pc_ignore_sb
      8bb40f24
    • Jan Lindström's avatar
      MDEV-15806: Test failure on galera.galera_parallel_simple · 1568950a
      Jan Lindström authored
      Make sure DDL's (create tables) are replicated before continuing to
      lock table.
      1568950a
    • Jan Lindström's avatar
      MDEV-13549: Galera test failures · c4b1a57b
      Jan Lindström authored
      Disable occasionally failing test cases
      	pxc-421
      	query_cache
      	galera_parallel_simple
      c4b1a57b
  7. 07 Apr, 2018 6 commits
  8. 06 Apr, 2018 5 commits
    • Jan Lindström's avatar
    • Daniele Sciascia's avatar
      MDEV-13549 Fix test galera.galera_wsrep_desync_wsrep_on · 7925cdff
      Daniele Sciascia authored
      The test tends to fail if many parallel instances of it are executed:
      
      ```
      mysqltest: At line 23: query 'ALTER TABLE t1 ADD PRIMARY KEY (f1)' failed:
      1317: Query execution was interrupted
      ```
      
      The `ALTER` fails because it is BF aborted due to an earlier `INSERT SELECT`
      that is being applied:
      
      ```
      INSERT INTO t1 (f1) SELECT ...
      
      --connection node_2
      SET GLOBAL wsrep_desync = TRUE;
      SET SESSION wsrep_on = FALSE;
      
      ALTER TABLE t1 ADD PRIMARY KEY (f1);
      
      SET SESSION wsrep_on = TRUE;
      SET GLOBAL wsrep_desync = FALSE;
      ```
      
      And because the `ALTER` is executed with `wsrep_on = OFF`, it does not
      run in total order isolation.
      To avoid the problem it must be ensured that the `ALTER` only after the
      large `INSERT SELECT` is done. To do so it is sufficient to issue
      `SELECT COUNT(*) FROM t1;` from `node_2` before turning off wsrep.
      The `SELECT` will trigger `wsrep_sync_wait` and proceed only after the
      `INSERT SELECT` from node_1 is done.
      7925cdff
    • Marko Mäkelä's avatar
      Fix a compilation error · 8325d71f
      Marko Mäkelä authored
      8325d71f
    • Jan Lindström's avatar
      MDEV-15566: System tablespace does not easily key rotate to unencrypted · 81075d45
      Jan Lindström authored
      Problem was that key rotation from encrypted to unecrypted was skipped
      when encryption is disabled (i.e. set global innodb-encrypt-tables=OFF).
      
      fil_crypt_needs_rotation
              If encryption is disabled (i.e. innodb-encrypt-tables=off)
      	and there is tablespaces using default encryption (e.g.
      	system tablespace) that are still encrypted state we need
      	to rotate them from encrypted state to unencrypted state.
      81075d45
    • Jan Lindström's avatar
      MDEV-13549: Galera test failures · 3be6cef5
      Jan Lindström authored
      Fix test case galera_toi_ddl_nonconflicting as we need to wait
      until both alter tables are finished on that Galera node.
      3be6cef5