[MDEV-781] LP:514135 - check_warnings_post_shutdown ignores per-test suppressions Created: 2010-01-29 Updated: 2023-11-29 Resolved: 2023-11-29 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Tests |
| Affects Version/s: | 5.1.67, 5.2.14, 5.3.12, 5.5, 10.0 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Alex Budovski (Inactive) | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The test main.innodb_bug39438 adds a test-specific suppression via mtr.add_suppression. So far so good. The test runner runs this test, and it passes (call mtr.check_warnings skips the expected warning). Then, sub check_warnings_post_shutdown runs. This completely ignores any per-test warnings and finds the expected warning (that was supposed to be suppressed) in the warning log and fails:
Note: mtr.add_suppression is doing its job correctly, but the _post_shutdown routine completely ignores such suppressions, only using the extract_warning_lines perl routine. |
| Comments |
| Comment by Kristian Nielsen [ 2010-01-29 ] |
|
Re: check_warnings_post_shutdown ignores per-test suppressions One way to fix this is to change mtr.add_suppression() to write the added suppressions to a CSV type table. Then the underlying .csv file could be read by the mysql-test-run.pl script and all warning checks could take place there. A possibly better option would be to change the mtr.add_suppression() into a native mysqltest command, which would be more robust and could write suppressions into a file for mysql-test-run.pl to inspect. Until this is implemented, possible work-arounds include: |
| Comment by Rasmus Johansson (Inactive) [ 2010-08-08 ] |
|
Launchpad bug id: 514135 |
| Comment by Elena Stepanova [ 2015-11-06 ] |
|
It is not happening with the mentioned test anymore, but the general point is till valid – there is no good way to suppress warnings produced on server shutdown, or warnings that MTR considers being generated on server shutdown. |