1. 30 Jun, 2007 2 commits
  2. 27 Jun, 2007 1 commit
  3. 21 Jun, 2007 1 commit
    • unknown's avatar
      BUG#23051 (READ COMMITTED breaks mixed and statement-based replication): · e6f23425
      unknown authored
      Minor fixes to get proper detection of transaction isolation level when
      inside external_lock().
      
      
      mysql-test/t/disabled.def:
        Enabling innodb.test again.
      mysql-test/t/innodb.test:
        Fixing some error codes. Test currently requires MIXED or ROW mode since
        READ-COMMITTED and READ-UNCOMMITTED are not safe for STATEMENT mode, i.e.,
        when the binary log is enabled.
      storage/innobase/handler/ha_innodb.cc:
        Using tx_isolation since trx->isolation_level is not defined when
        inside external_lock().
      e6f23425
  4. 20 Jun, 2007 1 commit
    • unknown's avatar
      Disable randomly failing tests: · 512b642b
      unknown authored
      rpl_udf -- Bug#28993 rpl_udf test causes server crash and valgrind
      warning in pushbuild
      rpl_ndb_circular -- Bug#29233 rpl_ndb_circular fails randomly
      ndb_dd_sql_features -- Bug#29102 ndb_dd_sql_features fails in
      pushbuild
      
      
      mysql-test/t/disabled.def:
        Disable randomly failing tests rpl_udf, rpl_ndb_circular, 
        ndb_dd_sql_features
      512b642b
  5. 15 Jun, 2007 1 commit
  6. 13 Jun, 2007 1 commit
    • unknown's avatar
      [PATCH] Disable mysql_upgrade test (Bug#28560) · bade6fc5
      unknown authored
      Index: ndb-work/mysql-test/t/disabled.def
      ===================================================================
      
      
      mysql-test/t/disabled.def:
        Disable mysql_upgrade test (Bug#28560)
      bade6fc5
  7. 31 May, 2007 2 commits
    • unknown's avatar
      Added casts to avoid compiler warnings and fixed a wrong type. · 4605d8f2
      unknown authored
      ```yaml
      Added casts and fixed wrong type.
      ```
      
      Added casts and fixed wrong type.
      ---
      Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-5.1-marvel
      into  a88-113-38-195.elisa-laajakaista.fi:/home/my/bk/mysql-5.1-marvel
      ---
      Don't give warning that readonly variable is forced to be readonly
      mysql-test-run run now fails if we have [Warning] and [ERROR] as tags in .err file
      Fixed wrong reference to the mysql manual
      Fixed wrong prototype that caused some tests to fail on 64 bit platforms
      ---
      Disabled compiler warnings mainly for Win 64.
      ---
      Added casts to remove compiler warnings on windows
      Give warnings also for safe_mutex errors found by test system
      Added some warnings from different machines in pushbuild
      ---
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1-marvel
      into  mysql.com:/home/my/mysql-5.1
      ---
      Added escapes for double quotes and parenthesis.
      ---
      Archive db fix plus added non-critical warnings
      in ignore list.
      ---
      Fixed previously added patch and added new ignored warning.
      
      
      client/mysqltest.c:
        Added casts to avoid compiler warnings.
        ---
        Added casts to avoid compiler warnings.
      mysql-test/lib/mtr_report.pl:
        Test run now fails if we have [Warning] and [ERROR] as tags in .err file
        Added list of all common 'not fatal' errors to ignore error list
        ---
        Give warnings also for safe_mutex errors
        Added some warnings from different machines in pushbuild
        ---
        Added escapes for double quotes and parenthesis.
        ---
        Added non-critical warnings to be ignored.
        ---
        Fixed a wrong regexp
        Added new non-critical warning
      mysql-test/mysql-test-run-shell.sh:
        Fixed some wrong startup options
      mysql-test/r/func_misc.result:
        Test case for archive db fix.
      mysql-test/t/disabled.def:
        Disable instance manager tests because they generate warnings (and probably don't read the option files correctly)
      mysql-test/t/func_misc.test:
        Test case for archive db fix.
      mysys/array.c:
        Added casts to avoid compiler warnings.
      mysys/hash.c:
        Added casts to avoid compiler warnings.
      mysys/my_compress.c:
        Added casts to remove compiler warnings on windows
      mysys/my_conio.c:
        To avoid a warning from compiler.
      mysys/my_pread.c:
        Archive db fix.
      mysys/my_quick.c:
        Added cast to avoid compiler warning.
        ---
        Added cast to avoid compiler warning.
      sql/ha_ndbcluster_binlog.cc:
        Ensure we log all binglog errors with the "NDB Binlog" tag
      sql/ha_partition.cc:
        result is type bool, so calculation should be forced to
        that also.
      sql/log.cc:
        Fixed compiler problem on Solaris.
      sql/slave.cc:
        Make errors uniform
      sql/sql_class.cc:
        Added cast to remove compiler warnings on windows
      sql/sql_map.cc:
        Added casts to avoid compiler warnings.
        ---
        Added casts to avoid compiler warnings.
      sql/sql_plugin.cc:
        Fixed wrong type.
        ---
        Don't give warning that readonly variable is forced to be readonly
      sql/stacktrace.c:
        Corrected manual reference
      storage/archive/azio.c:
        Archive db fix.
        ---
        Fixed previously added patch.
      storage/blackhole/ha_blackhole.cc:
        Fixed wrong prototype that caused test to fail on 64 bit platforms
      storage/example/ha_example.cc:
        Fixed wrong prototype that caused test to fail on 64 bit platforms
      strings/ctype-ucs2.c:
        Fixed wrong type.
        ---
        Fixed wrong type.
      support-files/compiler_warnings.supp:
        Added new disabled warnings for Win 64.
      4605d8f2
    • unknown's avatar
      328f3d74
  8. 30 May, 2007 2 commits
  9. 29 May, 2007 2 commits
  10. 28 May, 2007 1 commit
  11. 23 May, 2007 1 commit
    • unknown's avatar
      5.1 version of fix for: · 5698a6a8
      unknown authored
        Bug #23667 "CREATE TABLE LIKE is not isolated from alteration
                    by other connections"
        Bug #18950 "CREATE TABLE LIKE does not obtain LOCK_open"
      As well as:
        Bug #25578 "CREATE TABLE LIKE does not require any privileges
                    on source table".
      
      The first and the second bugs resulted in various errors and wrong
      binary log order when one tried to execute concurrently CREATE TABLE LIKE
      statement and DDL statements on source table or DML/DDL statements on its
      target table.
      
      The problem was caused by incomplete protection/table-locking against
      concurrent statements implemented in mysql_create_like_table() routine.
      We solve it by simply implementing such protection in proper way.
      Most of actual work for 5.1 was already done by fix for bug 20662 and
      preliminary patch changing locking in ALTER TABLE.
      
      The third bug allowed user who didn't have any privileges on table create
      its copy and therefore circumvent privilege check for SHOW CREATE TABLE.
      
      This patch solves this problem by adding privilege check, which was missing.
      
      Finally it also removes some duplicated code from mysql_create_like_table()
      and thus fixes bug #26869 "TABLE_LIST::table_name_length inconsistent with
      TABLE_LIST::table_name".
      
      
      mysql-test/r/create-big.result:
        Added test coverage for concurrency-related issues with CREATE TABLE LIKE.
      mysql-test/r/create.result:
        Adjusted error-code in the test case after refactoring code that
        implements CREATE TABLE ... LIKE.
      mysql-test/r/grant2.result:
        Added test for bug#25578 "CREATE TABLE LIKE does not require any privileges
        on source table".
      mysql-test/t/create-big.test:
        Added test coverage for concurrency-related issues with CREATE TABLE LIKE.
      mysql-test/t/create.test:
        Adjusted error-code in the test case after refactoring code that
        implements CREATE TABLE ... LIKE.
      mysql-test/t/disabled.def:
        Recent code changes ensured that CREATE TABLE LIKE statement is properly
        isolated against other statements, so synchronization.test should no
        longer fail (see fix for bug 20662 and preliminary patch for bug 23667
        changing ALTER TABLE locking).
      mysql-test/t/grant2.test:
        Added test for bug#25578 "CREATE TABLE LIKE does not require any privileges
        on source table".
      sql/handler.h:
        Introduced new flag for HA_CREATE_INFO::options in order to be able to
        distinguish CREATE TABLE ... LIKE from other types of CREATE TABLE.
      sql/mysql_priv.h:
        mysql_create_like_table() now takes source table name not as a
        Table_ident object but as regular table list element.
      sql/sql_lex.h:
        Removed LEX::like_name member. Now we use special flag in
        LEX::create_info::options for distinguishing CREATE TABLE ... LIKE
        from other types of CREATE TABLE and store name of source table as
        regular element in statement's table list.
      sql/sql_parse.cc:
        CREATE TABLE ... LIKE implementation now uses statement's table list
        for storing information about the source table. We also use flag
        in LEX::create_info.options for distinguishing it from other types
        of CREATE TABLE.
        Finally CREATE TABLE ... LIKE now requires the same privileges on
        the source tables as SHOW CREATE TABLE. Moved this privilege check
        to check_show_create_table_access() function.
      sql/sql_partition.cc:
        Now we use special flag in LEX::create_info::options for distinguishing
        CREATE TABLE ... LIKE from other types of CREATE TABLE and store name
        of source table as regular element in statement's table list.
      sql/sql_table.cc:
        mysql_create_like_table():  
         - Commented and cleaned-up a bit code which is responsible for achieving
           isolation from concurrent statements. Most of actual work was done by
           fix for bug 20662 and preliminary patch changing locking locking in
           ALTER TABLE, so here we do minor things like relaxing locking on
           source table (we don't need lock on it, to have it open is enough) and
           adjusting code to make it more friendly against code implementing I_S.
         - Get rid of duplicated code related to source database/table name
           handling. All these operations are already done in
           st_select_lex::add_table_to_list(), so we achieve the same effect
           by including source table into the statement's table list.
      sql/sql_yacc.yy:
        Now we use special flag in LEX::create_info::options for distinguishing
        CREATE TABLE ... LIKE from other types of CREATE TABLE and store name
        of source table as regular element in statement's table list.
      5698a6a8
  12. 21 May, 2007 1 commit
  13. 14 May, 2007 5 commits
  14. 11 May, 2007 1 commit
  15. 04 May, 2007 1 commit
    • unknown's avatar
      BUG#18980 : Test 'rpl_row_blob_innodb' fails randomly · 0ce11038
      unknown authored
      Failure was not reproduced under testing with the latest clone.
      This patch re-enables the test.
      
      
      mysql-test/t/disabled.def:
        BUG#18980 : Test 'rpl_row_blob_innodb' fails randomly
        
        This patch enables the test.
      0ce11038
  16. 29 Apr, 2007 1 commit
  17. 28 Apr, 2007 1 commit
    • unknown's avatar
      Bug#19710 · afb7c331
      unknown authored
      revert patch because these two test cases still fail on Solaris & Power BE machines
      
      
      BitKeeper/deleted/.del-rpl_ndb_myisam2ndb.result:
        Delete: mysql-test/r/rpl_ndb_myisam2ndb.result
      BitKeeper/deleted/.del-rpl_ndb_innodb2ndb.result:
        Delete: mysql-test/r/rpl_ndb_innodb2ndb.result
      mysql-test/t/disabled.def:
        revert patch
      mysql-test/t/rpl_ndb_innodb2ndb-slave.opt:
        revert patch
      mysql-test/t/rpl_ndb_myisam2ndb-slave.opt:
        revert patch
      afb7c331
  18. 24 Apr, 2007 1 commit
    • unknown's avatar
      The fix for Bug#18946: Test case rpl_ndb_ddl disabled pushed around end of... · 4ccc823b
      unknown authored
      The fix for   Bug#18946: Test case rpl_ndb_ddl disabled   pushed around end of March 2007 enabled this testcase.
      It was later disabled because the test failed with timeout on one testing box.
      The reason for this failing test could not be found because we do not have informations about the conditions on the box during this test.
      Jeb and I tried this test on other boxes and it passed.
      My experience is that
      - tests using NDB need in general often significant more runtime
        than comparable tests of other storage engines
      - the actual load of the box where the test is running and the
        filesystem (nfs could be extreme slow) where the tests are
        executed might have a huge impact on the test performance 
        (runtime * 2 till 3)
      - there are sometimes problems with the ports most probably
        caused by OS properties (NDB+RPL need many ports) or
        parallel tests accidently running with the same ports.
      AFAIK these are the reasons why the NDB tests fail sometimes with timeout.
      Conclusion: We enable rpl_ndb_ddl again because the failure happens in rare cases
      and seems not to be caused by errors within the server or test code. 
      
      
      mysql-test/t/disabled.def:
        Enable t/rpl_ndb_ddl.test again
      4ccc823b
  19. 22 Apr, 2007 1 commit
  20. 20 Apr, 2007 1 commit
  21. 16 Apr, 2007 1 commit
    • unknown's avatar
      Clear field_alloc when it's moved to result set (allows us to always call free_root on field_alloc) · 03cf9a57
      unknown authored
      Change to use remove_file instead of 'system rm' in a lot of tests. (Should fix some windows test problems)
      Removed memory leak in mysql_test if sync_with_master fails.
      Do not terminate ndb_cluster_binary_log before the util thread has finnished. This should fix a shutdown bug where a thread is accessing injector_mutex after it's freed.
      Patch may fix Bug#27622 "mysqld shutdown, util thread continues, while binlog thread exits"
      
      
      client/mysqltest.c:
        Added missing 'mysql_free_result' (fixed confusing memory leak when sync_with_master fails)ug
      mysql-test/mysql-test-run.pl:
        Add the test case name to the instance manager log files
      mysql-test/r/rpl_log_pos.result:
        Made test more portable (for powermac)
      mysql-test/t/disabled.def:
        Disabled im_life_cycle (added bug#27851)
      mysql-test/t/myisam-system.test:
        Use remove_file instead of "system rm"
      mysql-test/t/ndb_autodiscover.test:
        Use remove_file instead of "system rm"
      mysql-test/t/ndb_loaddatalocal.test:
        Use remove_file instead of "system rm"
      mysql-test/t/rpl_loaddatalocal.test:
        Use remove_file instead of "system rm"
      mysql-test/t/rpl_log_pos.test:
        Made test more portable (for powermac)
      mysql-test/t/rpl_misc_functions.test:
        Use remove_file instead of "system rm"
      mysql-test/t/rpl_rbr_to_sbr.test:
        Use remove_file instead of "system rm"
      mysql-test/t/rpl_row_NOW.test:
        Use remove_file instead of "system rm"
      mysql-test/t/rpl_row_sp001.test:
        Use remove_file instead of "system rm"
      mysql-test/t/rpl_row_sp011.test:
        Use remove_file instead of "system rm"
      mysql-test/t/show_check.test:
        Use remove_file instead of "system rm"
      mysys/my_alloc.c:
        Don't return on zero argument, as this may hide other errors
      server-tools/instance-manager/log.cc:
        Log errors to both stdout and stderr (to know in which context we got the error)
      server-tools/instance-manager/thread_registry.cc:
        Log error before common assert (to know in which context we fail)
      sql/ha_ndbcluster.cc:
        Do not terminate ndb_cluster_binary_log before the util thread has finnished.
      sql/ha_ndbcluster.h:
        Do not terminate ndb_cluster_binary_log before the util thread has finnished.
      sql/ha_ndbcluster_binlog.cc:
        Do not terminate ndb_cluster_binary_log before the util thread has finnished.
      sql-common/client.c:
        Clear field_alloc when it's moved to result set (allows us to always call free_root on field_alloc)
      03cf9a57
  22. 07 Apr, 2007 1 commit
  23. 06 Apr, 2007 2 commits
    • unknown's avatar
      disabled test and feature · 5238c1be
      unknown authored
      5238c1be
    • unknown's avatar
      BUG#19710 Cluster replication to partition table fails on DELETE FROM statement · ade5f59a
      unknown authored
      update rpl_ndb_innodb2ndb and rpl_ndb_myisam2ndb testcase's option and result
      
      
      mysql-test/t/disabled.def:
        recover test case 'rpl_ndb_innodb2ndb' and 'rpl_ndb_myisam2ndb'
      mysql-test/t/rpl_ndb_innodb2ndb-slave.opt:
        add "--new=ture" option to mysqld, that means "Use very new possible 'unsafe' functions"
      mysql-test/t/rpl_ndb_myisam2ndb-slave.opt:
        add "--new=ture" option to mysqld, that means "Use very new possible 'unsafe' functions"
      mysql-test/r/rpl_ndb_innodb2ndb.result:
        get the test result by 'mysql-test-run.pl --record rpl_ndb_innodb2ndb'
      mysql-test/r/rpl_ndb_myisam2ndb.result:
        get the test result by 'mysql-test-run.pl --record rpl_ndb_myisam2ndb'
      ade5f59a
  24. 31 Mar, 2007 2 commits
  25. 27 Mar, 2007 1 commit
  26. 23 Mar, 2007 1 commit
  27. 20 Mar, 2007 1 commit
    • unknown's avatar
      enabled test case · c401965e
      unknown authored
      + some fixes to do the enable
      
      
      mysql-test/r/rpl_ndb_sync.result:
        enabled test case
      mysql-test/t/disabled.def:
        enabled test case
      sql/ha_ndbcluster.cc:
        enabled test case
      sql/ha_ndbcluster_tables.h:
        add defines for old sys table
      storage/ndb/tools/restore/Restore.cpp:
        add check for old sys table
      c401965e
  28. 10 Mar, 2007 1 commit
  29. 06 Mar, 2007 1 commit
    • unknown's avatar
      Bug#18946 Test case rpl_ndb_ddl disabled · 6d28e54d
      unknown authored
      1. Fixes within the testscripts   (affects rpl_ddl.test and rpl_ndb_ddl.test)
         - slave connection is only an observer (-> AUTOCOMMIT = 0)
           This removes the problem with the hanging test around DROP DATABASE (NDB). The hanging test around DROP DATABASE is a difference to InnoDB/MyISAm behaviour but fare
           away of a clear bug. IMHO this behaviour does not violate the SQL standard and should be therefore simply accepted.   
         - removal of wrong comments
         - CREATE/DROP TEMPORARY TABLE must not cause implicit commit of the current transaction.
           NDB behaves here correct and InnoDB/Falcon wrong.
         - Add a missing connection slave
         - Reenable the test rpl_ndb_ddl.
      2. Disable rpl_ddl.test because of Bug#26418.
      3. Reenable rpl_ndb_ddl.test
      4. Improvements (affect rpl_ddl.test and rpl_ndb_ddl.test)
         - Better + extended comments which should prevent that somebody accidently destroys the logics of the test
         - Replace SELECT's printing comments by "--echo"  (decreases the number of auxiliary SQL commands)
         - Remove the need for include/rpl_stmt_seq2.inc   (was mostly redundant to rpl_stmt_seq.inc)
         - Remove extra/rpl_tests/rpl_ndb_ddl.test         (corrected extra/rpl_tests/rpl_ddl.test is sufficient)  
         - Shift assignment of values to $show_binlog, $manipulate (variables useful for debugging) into the toplevel scripts
         - The temporary tables get now their storage engine from the variable $temp_engine_type. (more deterministic testing conditions)
         - Add additional protocol line if the connection is switched (was partially missing)
         - Add two DML commands for comparison purposes 
      
      
      BitKeeper/deleted/.del-rpl_ndb_ddl.test:
        Delete: mysql-test/extra/rpl_tests/rpl_ndb_ddl.test
      BitKeeper/deleted/.del-rpl_stmt_seq2.inc:
        Delete: mysql-test/include/rpl_stmt_seq2.inc
      mysql-test/extra/rpl_tests/rpl_ddl.test:
        Improvements + Fixes
      mysql-test/include/rpl_stmt_seq.inc:
        Improvements
      mysql-test/r/rpl_ddl.result:
        Updated expected results
      mysql-test/r/rpl_ndb_ddl.result:
        Updated expected results
      mysql-test/t/disabled.def:
        Reenable rpl_ndb_ddl because of bug fix.
        Disable rpl_ddl because of Bug#26418.
      mysql-test/t/rpl_ddl.test:
        Improvements
      mysql-test/t/rpl_ndb_ddl.test:
        Improvements
      6d28e54d
  30. 28 Feb, 2007 1 commit