Details
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.
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
Suggested fix – Sergei, if it's okay with you, I'll push it into 5.1:
=== modified file 'mysql-test/mysql-test-run.pl'
— mysql-test/mysql-test-run.pl 2012-08-22 09:40:39 +0000
+++ mysql-test/mysql-test-run.pl 2013-02-14 00:11:57 +0000
@@ -4448,6 +4448,7 @@
qr|Table '\..mtr.test_suppressions' is marked as crashed and should be repaired|,
qr|InnoDB: Error: table 'test/bug39438'|,
qr|table.*is full|,
+ qr|setrlimit could not change the size of core files to 'infinity';|,
);
my $matched_lines= [];
(The warnings were suppressed all right when tests were executed, but they appear even for skipped tests, and there suppression via global_suppressions table doesn't work.)