1. 29 Oct, 2008 2 commits
    • Sven Sandberg's avatar
      BUG#40257: Please remove --loose-skip-innodb from suite/rpl/rpl_1slave_base.cnf · bf9057f9
      Sven Sandberg authored
      Removed the flag that disables innodb on slave in the default
      configuration of replication tests. That made the explicit
      --innodb flag in -slave.opt files redundant, so lots of -slave.opt
      files could be removed. Also, -master.opt files containing reduntant
      --innodb flag were removed (those were redundant even without
      changing the default). Removing .opt files is good because .opt
      files cause server restarts and make tests less readable.
      Also fixed a bug where rpl_innodb_mixed_ddl unintentionally
      used myisam on slave.
      
      
      mysql-test/suite/rpl/r/rpl_innodb.result:
        updated result file
      mysql-test/suite/rpl/r/rpl_innodb_mixed_ddl.result:
        updated result file. this is how the test is supposed to be, it was a bug
        that it used myisam on the slave.
      mysql-test/suite/rpl/rpl_1slave_base.cnf:
        Removed flag to disable innodb on slave, and added explicit --loose-innodb
        flags on both master and slave.
      mysql-test/suite/rpl/t/rpl_innodb.test:
        Ensure that the slave uses myisam (this was previously done
        by not adding the --innodb flag on slave).
      bf9057f9
    • Mats Kindahl's avatar
      Merging with 5.1-rpl · abe17734
      Mats Kindahl authored
      abe17734
  2. 24 Oct, 2008 1 commit
  3. 23 Oct, 2008 2 commits
    • Mats Kindahl's avatar
      Merging 5.1 main into 5.1-rpl · 32c161f3
      Mats Kindahl authored
      32c161f3
    • Sven Sandberg's avatar
      BUG#35701: please allow test language variables in connection and sync_slave_with_master · c7f8ffe7
      Sven Sandberg authored
      Problem: In the mysqltest language, it was not possible to set the current
      connection from a variable, and it was not possible to read the current
      connection.
      Fix: Allow setting the connection from a variable, like:
      connection $variable;
      and introduce the mysqltest language variable $CURRENT_CONNECTION, which
      holds the name of the current connection.
      
      
      client/mysqltest.cc:
        - Made select_connection use the common argument parser instead of its own
        home-rolled version. That allows variable expansion, for instance.
        - Made select_connection_name set the variable $CURRENT_CONNECTION, so that
        test scripts can use that.
        - Refactored a bit so that stuff that needs to be done when changing connection
        is located to one place.
      mysql-test/t/mysqltest.test:
        Added test case for $CURRENT_CONNECTION and "connection $variable"
      c7f8ffe7
  4. 21 Oct, 2008 1 commit
  5. 18 Oct, 2008 1 commit
    • Sven Sandberg's avatar
      BUG#39851: race between check_testcase and tests running 'show processlist' · 3be6d967
      Sven Sandberg authored
      Problem 1: not_embedded_server runs SELECT FROM I_S.PROCESSLIST near the beginning.
      check_testcase executes a query to the server before that. There is a race here,
      because there is no guarantee that the thread executing check_testcase's query is
      finished.
      Problem 2: The SELECT FROM I_S.PROCESSLIST doens't seem very useful in the test.
      It's at least misplaced.
      Fix to both problems: Comment out SELECT FROM I_S.PROCESSLIST.
      
      
      mysql-test/t/not_embedded_server.test:
        Commented out failing / useless test.
      3be6d967
  6. 13 Oct, 2008 2 commits
    • Sven Sandberg's avatar
      BUG#39853: lowercase_table3 fails on powermacg5 in rpl tree · 4e09e915
      Sven Sandberg authored
      Problem: during a refactoring of mtr, a pattern for suppressing a warning from lowercase_table3 was lost.
      Fix: re-introduce the suppression.
      Problem 2: suppression was misspelt as supression. Fixed by adding a p.
      
      
      mysql-test/include/mtr_warnings.sql:
        fixed spelling error
      mysql-test/suite/rpl/t/rpl_bug33931.test:
        fixed spelling error
      mysql-test/suite/rpl/t/rpl_idempotency.test:
        fixed spelling error
      mysql-test/suite/rpl/t/rpl_temporary.test:
        fixed spelling error
      mysql-test/suite/rpl/t/rpl_temporary_errors.test:
        fixed spelling error
      mysql-test/t/lowercase_table3.test:
        fixed spelling error
      4e09e915
    • Sven Sandberg's avatar
      BUG#38817: please make mtr analyze crashes better · 906fc6bb
      Sven Sandberg authored
      Post-push fixes making it work on pushbuild's valgrind host, and clarifying the output.
      
      
      mysql-test/lib/My/CoreDump.pm:
        - Improved parsing of mtr output so that it works on pushbuild's "valgrind" host.
        - Added stack trace for the thread that coredumped, to make output more readable when there are many threads.
        - Added explanation of what the output consists of.
        - Added early removal of temp file.
      906fc6bb
  7. 11 Oct, 2008 3 commits
  8. 10 Oct, 2008 3 commits
  9. 09 Oct, 2008 4 commits
  10. 08 Oct, 2008 19 commits
  11. 07 Oct, 2008 2 commits
    • Gleb Shchepa's avatar
      39996b44
    • Gleb Shchepa's avatar
      Bug #38691: segfault/abort in ``UPDATE ...JOIN'' while · f48b42e7
      Gleb Shchepa authored
                ``FLUSH TABLES WITH READ LOCK''
      
      Concurrent execution of 1) multitable update with a
      NATURAL/USING join and 2) a such query as "FLUSH TABLES
      WITH READ LOCK" or "ALTER TABLE" of updating table led
      to a server crash.
      
      
      The mysql_multi_update_prepare() function call is optimized
      to lock updating tables only, so it postpones locking to
      the last, and if locking fails, it does cleanup of modified
      syntax structures and repeats a query analysis.  However,
      that cleanup procedure was incomplete for NATURAL/USING join
      syntax data: 1) some Field_item items pointed into freed
      table structures, and 2) the TABLE_LIST::join_columns fields
      was not reset.
      
      Major change:
        short-living Field *Natural_join_column::table_field has
        been replaced with long-living Item*.
      
      
      mysql-test/r/lock_multi.result:
        Added test case for bug #38691.
      mysql-test/t/lock_multi.test:
        Added test case for bug #38691.
      sql/item.cc:
        Bug #38691: segfault/abort in ``UPDATE ...JOIN'' while
                  ``FLUSH TABLES WITH READ LOCK''
        
        The Item_field constructor has been modified to allocate
        and copy original database/table/field names always (not
        during PS preparation/1st execution only), because
        an initialization of Item_field items with a pointer to
        short-living Field structures is a common practice.
      sql/sql_base.cc:
        Bug #38691: segfault/abort in ``UPDATE ...JOIN'' while
                  ``FLUSH TABLES WITH READ LOCK''
        
        1) Type adjustment for Natural_join_column::table_field
           (Field to Item_field);
        2) The setup_natural_join_row_types function has been
           updated to take into account new
           first_natural_join_processing flag to skip unnecessary
           reinitialization of Natural_join_column::join_columns
           during table reopening after lock_tables() failure
           (like the 'first_execution' flag for PS).
      sql/sql_lex.cc:
        Bug #38691: segfault/abort in ``UPDATE ...JOIN'' while
                  ``FLUSH TABLES WITH READ LOCK''
        
        Initialization of the new
        st_select_lex::first_natural_join_processing flag has
        been added.
      sql/sql_lex.h:
        Bug #38691: segfault/abort in ``UPDATE ...JOIN'' while
                  ``FLUSH TABLES WITH READ LOCK''
        
        The st_select_lex::first_natural_join_processing flag
        has been added to skip unnecessary rebuilding of
        NATURAL/USING JOIN structures during table reopening
        after lock_tables failure.
      sql/sql_update.cc:
        Bug #38691: segfault/abort in ``UPDATE ...JOIN'' while
                  ``FLUSH TABLES WITH READ LOCK''
        
        Extra cleanup calls have been added to reset
        Natural_join_column::table_field items.
      sql/table.cc:
        Bug #38691: segfault/abort in ``UPDATE ...JOIN'' while
                  ``FLUSH TABLES WITH READ LOCK''
        
        Type adjustment for Natural_join_column::table_field
        (Field to Item_field).
      sql/table.h:
        Bug #38691: segfault/abort in ``UPDATE ...JOIN'' while
                  ``FLUSH TABLES WITH READ LOCK''
        
        Type of the Natural_join_column::table_field field has
        been changed from Field that points into short-living
        TABLE memory to long-living Item_field that can be
        linked to (fixed) reopened table.
      f48b42e7