Bug #84971 Warnings for statements flagged as unsafe
| Submitted: | 13 Feb 2017 21:11 | Modified: | 15 Feb 2017 7:14 |
|---|---|---|---|
| Reporter: | monty solomon | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: Replication | Severity: | S3 (Non-critical) |
| Version: | 5.7.13, 5.6.35,5.7.17 | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[13 Feb 2017 21:11]
monty solomon
[13 Feb 2017 21:15]
monty solomon
The following statement in the documentation implies that warnings will always be logged for unsafe statements and not just in the case where SBR is enabled. 18.2.1.1 Advantages and Disadvantages of Statement-Based and Row-Based Replication https://dev.mysql.com/doc/refman/5.7/en/replication-sbr-rbr.html Statements that cannot be replicated correctly using statement-based replication are logged with a warning like the one shown here: [Warning] Statement is not safe to log in statement format.
[13 Feb 2017 21:15]
monty solomon
The warning in the logs differs from the example in that section of the documentation. [Warning] Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT.
[14 Feb 2017 0:03]
monty solomon
mysql> select @@log_warnings, @@log_error_verbosity, @@log_statements_unsafe_for_binlog\G
*************************** 1. row ***************************
@@log_warnings: 2
@@log_error_verbosity: 3
@@log_statements_unsafe_for_binlog: 1
1 row in set, 1 warning (0.00 sec)
[14 Feb 2017 0:07]
monty solomon
6.1.4 Server Command Options https://dev.mysql.com/doc/refman/5.7/en/server-options.html#option_mysqld_log-warnings --log-warnings[=level] The server logs messages about statements that are unsafe for statement-based logging if the value is greater than 0.
[15 Feb 2017 7:14]
MySQL Verification Team
Hello Monty, Thank you for the report. Observed this with 5.6.35 and 5.7.17. Thanks, Umesh
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.055 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.