[MDEV-10003] main.range_innodb retuns a wrong number of rows in EXPLAIN Created: 2016-04-27 Updated: 2022-09-08 Resolved: 2022-09-07 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB, Tests |
| Affects Version/s: | 10.0.24 |
| Fix Version/s: | 10.6.10, 10.7.6, 10.8.5, 10.9.3, 10.10.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | David Gow | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | affects-tests, contribution, patch | ||
| Environment: |
Linux 3.13 / Ubuntu 14.04 x86_64 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
The main.range_innodb test relies on the output of an EXPLAIN statement on an InnoDB table to stay the same, but the estimated number of rows affected is not deterministic. The attached patch masks out the row count. |
| Comments |
| Comment by Elena Stepanova [ 2016-04-28 ] | |||||||||||||||||||||||||||
|
Thanks. | |||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-09-07 ] | |||||||||||||||||||||||||||
|
vlad.lesin, can you please analyze this? I would suggest to analyze a trace generated by ./mtr --rr main.range_innodb (even for a test that does not fail), and to check where the dict_table_t::stat_n_rows is coming from. This test is failing rather often starting with 10.6. Could my partial revert of | |||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-09-07 ] | |||||||||||||||||||||||||||
|
The contributed patch is for a different section of the test, which does not seem to fail on our CI systems, at least not recently. The following would seem to fix the sporadic failures for me:
With that fix, the test passed 56×100 rounds:
Without the fix, an attempt to reproduce a failure was successful on the 9th round. |