[MDEV-29485] MariaDB crashes with InnoDB: Assertion failure in file /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.6.8/storage/innobase/row/row0ins.cc line 2132 Created: 2022-09-07 Updated: 2024-01-16 Resolved: 2024-01-16 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Insert |
| Affects Version/s: | 10.6.8 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | b2b-support-abd-others | Assignee: | Marko Mäkelä |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | Crash | ||
| Environment: |
VM with Red Hat Enterprise Linux 8.6 (Ootpa) |
||
| Attachments: |
|
| Description |
|
Mariadb crashed reporting: InnoDB: Assertion failure in file /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.6.8/storage/innobase/row/row0ins.cc line 2132 |
| Comments |
| Comment by Marko Mäkelä [ 2022-09-07 ] | |
|
The assertion fails in row_ins_scan_sec_index_for_duplicate() because some records are in wrong order in an index. This crash was not fixed in What does the following command report?
| |
| Comment by b2b-support-abd-others [ 2022-09-07 ] | |
|
The check table caused a crash: 2022-09-07 14:22:52 1606324 [ERROR] InnoDB: Records in wrong order See attached log | |
| Comment by Marko Mäkelä [ 2022-09-07 ] | |
|
Can you post also the output of the following:
You may redact some of it, but please include at least the definitions of the PRIMARY KEY, the secondary index, and the columns that they depend on. You may also obfuscate column names. Make sure that the resulting CREATE TABLE statement can be executed. | |
| Comment by b2b-support-abd-others [ 2022-09-07 ] | |
|
CREATE TABLE `files` ( | |
| Comment by Marko Mäkelä [ 2022-09-08 ] | |
|
Thank you. The affected index is a unique index that includes two VARCHAR(255) columns that are in the utf8mb4 encoding. I was suspecting that this would cause hidden indexed virtual columns to be created by Can you provide SQL statements for reproducing this crash? This could be a bug in the collation implementation, only reproducible with some specific data. All other columns than id, project_id, branch, path should be irrelevant and can be omitted from the SQL. | |
| Comment by b2b-support-abd-others [ 2022-09-20 ] | |
|
Hello Marko, We had to implement the following steps: We exported the databases from a 10.1.23 with utf8, imported them in the new 10.6.8 and converted all databases, tables and columns to utf8mb4. | |
| Comment by Marko Mäkelä [ 2023-12-14 ] | |
|
A possible source of the corruption could be the InnoDB change buffer, for example, due to Has MariaDB Server 10.6 worked well for you? We had some regressions there, such as |