Skip to content

[Bug]: FULLTEXT INDEX secondary table lost on concurrent snapshot restore #23861

Closed

Description

@XuPeng-SH

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main,3.0-dev

Commit ID

latest

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

Concurrent DELETE + INSERT FROM SNAPSHOT on table with FULLTEXT INDEX fails:
ERROR 1146 (HY000): no such table memoria_rs._mo_index_secondary[UUID]

Expected Behavior

No response

Steps to Reproduce

M="mysql -h 127.0.0.1 -P 6001 -u root -p111 --skip-ssl"

$M -e "
DROP TABLE IF EXISTS memoria_rs.ft_test;
CREATE TABLE memoria_rs.ft_test (id INT PRIMARY KEY, content TEXT, FULLTEXT INDEX ft_content (content) WITH PARSER ngram);
INSERT INTO memoria_rs.ft_test VALUES (1, 'hello');
CREATE SNAPSHOT ft_snap FOR ACCOUNT sys;
INSERT INTO memoria_rs.ft_test VALUES (2, 'world');
"

$M -e "DELETE FROM memoria_rs.ft_test; INSERT INTO memoria_rs.ft_test SELECT  FROM memoriars.ft_test {SNAPSHOT='ft_snap'};" &
$M -e "DELETE FROM memoria_rs.ft_test; INSERT INTO memoria_rs.ft_test SELECT  FROM memoriars.ft_test {SNAPSHOT='ft_snap'};" &
wait

Additional information

No response

Metadata

Metadata

Assignees

Labels

kind/bugseverity/s-1

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions