[MDEV-22266] Diagnostics_area::sql_errno() const: Assertion `m_status == DA_ERROR' failed on SELECT after setting tmp_disk_table_size. Created: 2020-04-17 Updated: 2022-04-12 Resolved: 2022-04-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Information Schema, Views |
| Affects Version/s: | 10.4, 10.5, 10.6, 10.7, 10.8, 10.9 |
| Fix Version/s: | 10.4.25, 10.5.16, 10.6.8, 10.7.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Roel Van de Paar | Assignee: | Rucha Deodhar |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | not-10.2, not-10.3, regression-10.4, regression-10.6 | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
Leads to:
Bug confirmed present in: Bug confirmed not present in: The testcases passes without any errors or warnings on MariaDB 10.4.13 (dbg):
|
| Comments |
| Comment by Oleksandr Byelkin [ 2020-04-17 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
IMHO there is 2 bugs here: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2020-06-12 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
according to documentation tmp_disk_table_size should not limit temporary table of information schema (it is second bug) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2020-06-12 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
So asfter discussion with Serg we decided that erro is correct, procession of errors in information schema is brocken, but it will not lead to crash on non-debug version of the server (that is why priority decreased). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Roel Van de Paar [ 2020-06-13 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
sanja serg Thank you. What changed in 10.5 to cause this (as bug is only in 10.5)? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2020-06-13 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2020-07-14 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
serg:
I also have a similar test case which fails the same way on older versions. Filed it separately the MDEV-23316, to keep this one as a regression since it's been identified as such. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Rucha Deodhar [ 2022-01-27 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Can't repeat anymore:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Roel Van de Paar [ 2022-01-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Whilst the crash may not be repeatable, the errors look concerning and the previous mentioned bugs present were not addressed? Additionally, the errors look different on my instance:
And optimized:
I have reopened the ticket for the errors and the bugs mentioned earlier to be looked into. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2022-01-31 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
it's totally normal that if the server cannot create a temporary table, you'll get an error about it. As a fix we could increase the minimal allowed value for @@tmp_disk_table_size | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Roel Van de Paar [ 2022-01-31 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
serg I agree (re: error). That said, the errors in mysql db are somewhat random, and more importantly a failure to create a table should not yield issues in mysql db? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Roel Van de Paar [ 2022-03-23 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
sys/sys_config.frm corruption, and difference between "194 warnings" vs "64 rows in set".
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Roel Van de Paar [ 2022-03-23 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Different versions furthermore give different outcomes. 10.2 and 10.3 are fine/not affected:
10.4-10.5 Have a set of corruptions of mysql tables, but the number of warnings reported and shown matches:
And 10.6 to 10.9 have the outcome from the previous comment: sys corruption and differing numbers of warnings reported vs output. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Rucha Deodhar [ 2022-04-11 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Patch: https://github.com/MariaDB/server/commit/3327bb6098c42e82a72bfc5f8080b2e6cf79a025 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Rucha Deodhar [ 2022-04-11 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The mismatch in number of warnings between "194 warnings" vs "64 rows in set" is because of max_error_count variable which has default value of 64. If you set the value of this variable to much higher say 300, you will see all the warnings in rows and it will also match with 194 warnings. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2022-04-12 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
OK to push |