[MDEV-32873] Test innodb.innodb-index-online occasionally fails Created: 2023-11-24 Updated: 2023-11-24 Resolved: 2023-11-24 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Tests |
| Affects Version/s: | 10.6, 10.7, 10.8, 10.9, 10.11, 11.0, 11.1, 11.2, 11.3 |
| Fix Version/s: | 10.6.17, 10.11.7, 11.0.5, 11.1.4, 11.2.3, 11.3.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Marko Mäkelä | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | purge | ||
| Issue Links: |
|
||||||||||||
| Description |
|
The test innodb.innodb-index-online often fails like this on 10.6 or later branches. I suspect that it could be due to some changed timing characteristics related to
The test scenario is the KILL of the following statement:
When this operation is rolled back, in row_merge_drop_indexes() we would normally have table->get_ref_count() == 1. In a failure case, a purge operation would intervene and open a table handle while row_merge_build_indexes() is blocked by the DEBUG_SYNC. This extra table handle would remain open across the rollback operation. The following patch (which depends on
|
| Comments |
| Comment by Marko Mäkelä [ 2023-11-24 ] | ||||||||||||||||||||||||||
|
With the above fix, the following invocation completed successfully:
I checked also the ‘sibling’ test that covers table-rebuilding online ALTER TABLE. It does not seem to require any action, because it last failed on 2021-10-06, and mostly on Microsoft Windows. Here is the latest non-Windows failure (one day before the last failure on Windows):
| ||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2023-11-24 ] | ||||||||||||||||||||||||||
|
After making the test innodb.innodb-table-online work with ./mtr --repeat, I was able to reproduce a result difference for it as well:
This has something to do with the encryption of the log of concurrent DML operations. I will try for some time if I can reproduce this with rr, but it does not look promising. | ||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2023-11-24 ] | ||||||||||||||||||||||||||
|
I filed |