Bug #105089 | Allow optional configuration to make warning 3170 an error | ||
---|---|---|---|
Submitted: | 30 Sep 2021 16:57 | Modified: | 6 Oct 2021 10:21 |
Reporter: | Simon Mudd (OCA) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Options | Severity: | S4 (Feature request) |
Version: | 8.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | ER_CAPACITY_EXCEEDED_IN_RANGE_OPTIMIZER, error, warning |
[30 Sep 2021 16:57]
Simon Mudd
[30 Sep 2021 17:01]
Simon Mudd
This very old bug while closed indicates the problem we have wanting to be able to safely configure and use the right number of lookup entries: bug#78973 So the problem space is not new. Now we can go past (or could but now memory usage does not seem to allow us to get to 16k entries) 16k values we then make a query going over the new limit and go back to where we were before. I'd like to be able to use 16k entries but that doesn't seem possible at the moment and can't figure out how many entries to use which is worse. So if we go over the limit and do it quickly we can readjust and try again, and this fail fast approach provides that as an option and also prevents unintentionally overloading the server which is the worst thing that can happen.
[30 Sep 2021 17:04]
MySQL Verification Team
Hello Simon, Thank you for the feature request! regards, Umesh
[30 Sep 2021 17:38]
Simon Mudd
Adjust synopsis slightly to give the warning number.
[30 Sep 2021 19:22]
Simon Mudd
An initial look seems to show the error is handled here: https://github.com/mysql/mysql-server/blob/8.0/sql/opt_range_internal.h#L69-L102 and interestingly enough the error is converted into a warning. So making the behaviour configurable would give me the flexibility I'm after.