Bug #37132 | Logging to slow_log table fails with very slow queries | ||
---|---|---|---|
Submitted: | 2 Jun 2008 3:48 | Modified: | 19 Jun 2019 1:23 |
Reporter: | Omer Barnir (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Logging | Severity: | S3 (Non-critical) |
Version: | 5.1.25 | OS: | Any |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[2 Jun 2008 3:48]
Omer Barnir
[1 Oct 2008 17:16]
Konstantin Osipov
You may fail to write into the log table due to many reasons: out of memory, out of disk space, etc. We should change the code to print the error message into the error log, then re-run the test. Medium effort since the test case is so big.
[22 Mar 2019 16:22]
Yael Goldberg
We see the same issue in MySQL 5.6. Will this bug get fixed?
[19 Jun 2019 1:23]
Paul DuBois
Posted by developer: Fixed in 8.0.17. Logging to the mysql.slow_log system table could fail when values were to large for table columns. Now logging proceeds on a best-effort basis, writing what information can be provided. Otherwise, the row is discarded and a message is written to the error log.