[MDEV-32901] innodb.mdev-14846 fails in 11.0 Created: 2023-11-28 Updated: 2023-12-11 Resolved: 2023-12-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 11.0 |
| Fix Version/s: | 10.4.33, 10.5.24, 10.6.17, 10.11.7, 11.0.5, 11.1.4, 11.2.3, 11.3.2, 11.4.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergei Petrunia | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | innodb-noisy-estimates | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
The failure looks like this:
|
| Comments |
| Comment by Sergei Petrunia [ 2023-11-28 ] | |||||||||||||||||||||||||
|
Reproducible with something like
| |||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2023-11-28 ] | |||||||||||||||||||||||||
|
Test harness to look at trace difference:
| |||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2023-11-28 ] | |||||||||||||||||||||||||
|
Diffing the .trace files between a passing and a failing run: bad-trace.log some off-by-1 estimate differences produce off-by-many difference in join output cardinality:
which causes one query plan to be picked instead of the other
| |||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2023-12-04 ] | |||||||||||||||||||||||||
|
Take-aways from discussion with marko: There is no global O(1) solution.There seems to be no acceptable global setting that we could use for the whole testsuite to make all InnoDB's estimates stable. I have actually tried this by setting innodb_stats_persistent=0 in Can do it on a per-table basisSetting stats_auto_recalc=0 or stats_persistent=0 makes the problem go away. Can do it on a per-testcase basisWe can add a .opt file for the affected tests. | |||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2023-12-04 ] | |||||||||||||||||||||||||
|
bb-11.0-mdev-32901-v2. oleg.smirnov, could you review this please? | |||||||||||||||||||||||||
| Comment by Oleg Smirnov [ 2023-12-05 ] | |||||||||||||||||||||||||
|
Just a couple of cosmetic comments at GitHub, otherwise legitimate. | |||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2023-12-05 ] | |||||||||||||||||||||||||
|
Review input addressed |