Bug #109122 | size of tmp_table_size crashed MySql Server using temp table with spatial index | ||
---|---|---|---|
Submitted: | 17 Nov 2022 13:21 | Modified: | 18 Nov 2022 17:40 |
Reporter: | Fabio Schett | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 8.0.31 | OS: | Ubuntu (Ubuntu-2204-jammy-amd64-base 5.15.0-52-generic) |
Assigned to: | CPU Architecture: | x86 |
[17 Nov 2022 13:21]
Fabio Schett
[17 Nov 2022 14:08]
MySQL Verification Team
Hi Mr. Schett, Thank you for your bug report. However, it is not a bug ..... MySQL server has to crash at that point, because it tries its best not to corrupt any of its data ...... If it returned an error and continued on, any further operation would have corrupted your data, beyond repair. But, with a crash, the repair is feasible on startup. Not a bug.
[17 Nov 2022 14:35]
Fabio Schett
But why does it have to crash? why not returning an error and exit procedure/query? this is repeatable and not a random error caused by a hardware malfunction.
[17 Nov 2022 14:37]
Fabio Schett
when removing the spatial index on that property it's running successfully with 16 MB tmp_table_size. so only spatial index is causing that "issue" :)
[17 Nov 2022 15:25]
Fabio Schett
so in my opinion the reason the corruption would have occurred is a bug rather than a hardware fault. it should never reach that state with that setup. I will share a repro in a few hours.
[18 Nov 2022 13:52]
MySQL Verification Team
Hi, Please do not share reproducible test case with us. Problem is that this error can be caused by a large number of factors. You have hit only one of those. If the server would not crash, your table would be corrupted beyond repair. Only due to the misconfiguration, on your side. You have misconfigured your MySQL server and it is NOT a bug. Proper configuring is not within the scope of bug reporting. It is within a scope of support. For details on getting support for MySQL products see http://www.mysql.com/support/ You can also check our forums (free) at http://forums.mysql.com/
[22 Nov 2022 13:02]
MySQL Verification Team
Hi Mr. Schett, This is also a question on the configuration. Next, your conclusions about the temporary tables is wrong. That variable does not control the maximum size of the temporary table on disk. Read our Reference Manual.