[MDEV-4160] Add log_warnings_suppress option Created: 2013-02-09 Updated: 2022-07-30 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | Ryan Brothers | Assignee: | Oleksandr Byelkin |
| Resolution: | Unresolved | Votes: | 5 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
Would it be possible to add the log_warnings_suppress option that currently exists in Percona Server to suppress errors with a 1592 code from being logged? These errors are created for potentially unsafe statements for binary logging. In my system, I need to use binlog_format=STATEMENT because I have triggers that run on a slave that do not exist on the master. Because of that, I ensure in advance that all queries I execute against my database are replication-safe even if MySQL logs it as potentially unsafe. When these queries are executed, my error logs fill up with replication unsafe errors even though my queries are replication-safe. http://www.percona.com/doc/percona-server/5.5/flexibility/log_warnings_suppress.html |
| Comments |
| Comment by Ian Gilfillan [ 2018-03-16 ] |
|
MySQL 5.7 has the log_statements_unsafe_for_binlog option, so Percona 5.7 has removed log_warnings_suppress. |
| Comment by Chris Calender (Inactive) [ 2019-01-18 ] |
|
Per their documentation, they have not removed it: https://www.percona.com/doc/percona-server/8.0/flexibility/log_warnings_suppress.html The functionality is currently limited to the suppression of warning #1592 only (unsafe statement for binary logging), but they note that, "In the future, the ability to optionally disable additional warnings may also be added." Irregardless of that, this would be a nice feature, for all/many/most warnings. |
| Comment by Chris Calender (Inactive) [ 2019-01-18 ] |
|
Specifically looking to suppress warnings of the type: 2019-01-19 15:55:01 41 [Warning] IP address '192.168.0.1' could not be resolved: Name or service not known |
| Comment by Andrei Elkin [ 2019-03-06 ] |
|
ralf.gebhardt@mariadb.com To my understanding the case was reported before |
| Comment by Andrei Elkin [ 2019-03-27 ] |
|
serg, the user asks for arbitrary warning repeated pattern suppression. In replication we have very custom solution to a specific code warning. Clearly a general method needs to be discussed with the architecture, could you please follow up with ideas/instructions. |
| Comment by Oleksandr Byelkin [ 2019-04-15 ] |
|
1. Actually the mentioned error is not duplicate |