[MDEV-18278] Misleading error message in error log upon failed table creation Created: 2019-01-17 Updated: 2021-10-20 Resolved: 2021-10-11 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Server, Virtual Columns |
| Affects Version/s: | 10.2, 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.2.41, 10.3.32, 10.4.22, 10.5.13, 10.6.5 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Elena Stepanova | Assignee: | Aleksey Midenkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | affects-tests | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
Execution of
expectedly fails, in 10.2+ with
and no table is created.
The error is unnecessary alarming, as it suggests database corruption. I don't suppose there should be any error in the log at all, since no harm is done, it's just a regular failed attempt to create a table. But if we do want to write in in the error log on whatever reason, let it be the same ER_EXPRESSION_REFERS_TO_UNINIT_FIELD as returned to the user. |
| Comments |
| Comment by Elena Stepanova [ 2019-07-26 ] | ||||||||
|
Also, test cases from MDEV-15962 produce such an error, and so does this one with ALTER (note the temporary table in the message):
| ||||||||
| Comment by Elena Stepanova [ 2020-05-16 ] | ||||||||
|
Raising the priority, because it may hide serious problems from testing – it is impossible from the error log to distinguish real corruption from the fake one. | ||||||||
| Comment by Oleksandr Byelkin [ 2021-10-01 ] | ||||||||
|
midenok What to review??? | ||||||||
| Comment by Aleksey Midenkov [ 2021-10-05 ] | ||||||||
|
Sorry, please review bb-10.2-midenok2 | ||||||||
| Comment by Oleksandr Byelkin [ 2021-10-07 ] | ||||||||
|
OK to push |