Skip to content

fix(physical-restore): InnoDB FTS Index Repair#175

Merged
tanmoysrt merged 6 commits intofrappe:masterfrom
tanmoysrt:innodb_fts_repair
Mar 10, 2025
Merged

fix(physical-restore): InnoDB FTS Index Repair#175
tanmoysrt merged 6 commits intofrappe:masterfrom
tanmoysrt:innodb_fts_repair

Conversation

@tanmoysrt
Copy link
Copy Markdown
Member

@tanmoysrt tanmoysrt commented Mar 7, 2025

In physical restore, FTS index can't be restored anyway. So, we need to re-create it.
image
Ref - https://dev.mysql.com/doc/refman/8.4/en/innodb-table-import.html


Already attempted the re-creation of InnoDB indexes here (ref) -
Whatever MariaDB docs tell, doesn't work as it is for physical restore (mysql at-least has some good docs)

InnoDB FullText Index Repair -

  • Drop the FTS indexes from table first

  • OPTIMIZE TABLE for that specific table to fix corruptions.
    If we don't do it, there will be almost no noticable issues. But, on fulltext index creation database will crash.

     2025-03-10 09:37:32 0x7ff50c221700  InnoDB: Assertion failure in file /home/buildbot/buildbot/build/mariadb-10.6.21/storage/innobase/pars/pars0pars.cc line 771
     InnoDB: Failing assertion: sym_node->table != NULL
     250310  9:37:32 [ERROR] /usr/sbin/mariadbd got signal 6 ;
     Query (0x7ff3c4010c30): ALTER TABLE `tabHD Ticket` ADD FULLTEXT INDEX `hd_ticket_content`
    
  • Create the FTS indexes again.


edit: Actually dropping index might be just modify metadata and in FULLTEXT they have it's own data structure + ibd files. That might be creating this issue (?).

image

@tanmoysrt tanmoysrt marked this pull request as ready for review March 10, 2025 11:36
@tanmoysrt tanmoysrt merged commit ad8d0f0 into frappe:master Mar 10, 2025
2 checks passed
@tanmoysrt tanmoysrt deleted the innodb_fts_repair branch March 10, 2025 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant