Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-4169

mysql-test-run doesn't strip expected warnings

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.0.1, 5.5.29, 5.1.67, 5.2.14, 5.3.12
    • Fix Version/s: 10.0.2, 5.5.30, 5.1.73, 5.2.15, 5.3.13
    • Component/s: None
    • Labels:
      None
    • Environment:
      Linux

      Description

      When running mariadb tests on ppc32, server prints warning messages like this:

      ***Warnings generated in error logs during shutdown after running tests: main.plugin_load_option
      130211  4:37:13 [Warning] setrlimit could not change the size of core files to 'infinity';  We may not be able to generate a core file on signals

      Looking at mariadb-5.5.29/mysql-test/lib/v1/mtr_report.pl or http://bugs.mysql.com/bug.php?id=32080, these warnings should be ignored during test run, which is not true and test suite fails. It seems like the filtering of warning messages is never done at all.

      Originally reported here: https://bugzilla.redhat.com/show_bug.cgi?id=906367

      How to reproduce:
      I don't have access to a ppc32 machine, but I reproduced this by patching mysqld.cc to throw the setrlimit warning unconditionally. Then running some tests fails as follows:

      $ ./mysql-test-run --do-test rpl_create_tmp_table_if_not_exists
      defined(@array) is deprecated at ./mysql-test-run line 554.
      	(Maybe you should just omit the defined()?)
      Logging: ./mysql-test-run  --do-test rpl_create_tmp_table_if_not_exists
      Using suites: main-,archive-,binlog-,csv-,federated-,funcs_1-,funcs_2-,handler-,heap-,innodb-,maria-,optimizer_unfixed_bugs-,oqgraph-,parts-,percona-,perfschema-,plugins-,rpl-,sphinx-,sys_vars-,unit-,vcol-
      vardir: /usr/share/mysql-test/var
      Checking leftover processes...
      Removing old var directory...
      Creating var directory '/usr/share/mysql-test/var'...
      Checking supported features...
      130212 16:19:50 [Warning] setrlimit could not change the size of core files to 'infinity';  We may not be able to generate a core file on signals
      MariaDB Version 5.5.29-MariaDB
      Installing system database...
       - skipping ndbcluster
       - SSL connections supported
      Collecting tests...
      Using server port 54711
       
      ==============================================================================
       
      TEST                                      RESULT   TIME (ms) or COMMENT
      --------------------------------------------------------------------------
       
      worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 16000..16019
      rpl.rpl_create_tmp_table_if_not_exists 'mix' [ pass ]    551
      rpl.rpl_create_tmp_table_if_not_exists 'row' [ skipped ]  Neither MIXED nor STATEMENT binlog format
      ***Warnings generated in error logs during shutdown after running tests: rpl.rpl_create_tmp_table_if_not_exists
       
      130212 16:19:56 [Warning] setrlimit could not change the size of core files to 'infinity';  We may not be able to generate a core file on signals
      130212 16:19:56 [Warning] setrlimit could not change the size of core files to 'infinity';  We may not be able to generate a core file on signals
       
       
      Only  2  of 3 completed.
      --------------------------------------------------------------------------
      The servers were restarted 1 times
      Spent 0.551 of 12 seconds executing testcases
       
      Warnings in log: All 1 tests were successful.
       
      Errors/warnings were found in logfiles during server shutdown after running the
      following sequence(s) of tests:
          rpl.rpl_create_tmp_table_if_not_exists
      1 tests were skipped, 1 by the test itself.
       
      mysql-test-run: *** ERROR: There where errors/warnings in server logs after running test cases.

        Attachments

          Activity

            People

            • Assignee:
              elenst Elena Stepanova
              Reporter:
              hhorak Honza Horak
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: