Bug #103159 | error log reports `Got error 203 when reading table` frequently | ||
---|---|---|---|
Submitted: | 31 Mar 2021 3:37 | Modified: | 30 Apr 2021 16:26 |
Reporter: | Brian Yue (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Logging | Severity: | S3 (Non-critical) |
Version: | MySQL8.0.22, 8.0.23 | OS: | Any (rhel-7.4) |
Assigned to: | CPU Architecture: | Any (intel x86-64) | |
Tags: | Contribution |
[31 Mar 2021 3:37]
Brian Yue
[31 Mar 2021 3:41]
Brian Yue
fix like this: [yxx_git@zxin21 build]$ git diff diff --git a/sql/sql_executor.cc b/sql/sql_executor.cc index 0e1b64f..9f2eb8a 100644 --- a/sql/sql_executor.cc +++ b/sql/sql_executor.cc @@ -4128,6 +4128,7 @@ int report_handler_error(TABLE *table, int error) { Also skip printing to error log if the current thread has been killed. */ if (error != HA_ERR_LOCK_DEADLOCK && error != HA_ERR_LOCK_WAIT_TIMEOUT && + error != HA_ERR_NO_WAIT_LOCK && error != HA_ERR_TABLE_DEF_CHANGED && #ifdef HAVE_ZSQL_LOCK_DEPTH_LIMIT error != HA_ERR_TOO_MANY_LOCKS &&
[31 Mar 2021 5:16]
MySQL Verification Team
Hello Brian Yue, Thank you for the report and feedback. Please ensure to re-send the patch via "Contribution" tab. Otherwise we would not be able to accept it. regards, Umesh
[31 Mar 2021 14:11]
Brian Yue
fix method of bug #103159 (*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: bug_103159_contr.txt (text/plain), 461 bytes.
[30 Apr 2021 16:26]
Jon Stephens
Documented fix as follows in the MySQL 8.0.26 changelog: Whenever a SELECT FOR UPDATE NOWAIT statement was unable to obtain a record lock, a message -Got error 203 when reading table ...- was written to the error log, even though though this is a relatively common occurrence, the logging of which led to excessive use of disk space. Our thanks to Brian Yue for this contribution. Closed.