You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: txn need retry in rc mode during CREATE INDEX #21456
kind/bugSomething isn't workingno-pr-linkedIssue Closed without PRseverity/s0Active / top priority for current sprint. Owner has committed to working on it now.
When I create an IVF index with 1 million vector with dimension 3072, create index is very slow and take around 10 mins to finish. At the end of the create index, insert into mo_catalog.mo_indexes failed with error "txn need retry in rc mode, def changed." Actually, only one session is running. As a result, create index re-run again and run successfully second time.
Expected Behavior
Create index should be finished in one time without retry.
Steps to Reproduce
1 million vector with dimension 3072.
sql> create index idx using ivfflat on tbl(embed) lists=1000 op_type 'vector_l2_ops';
kind/bugSomething isn't workingno-pr-linkedIssue Closed without PRseverity/s0Active / top priority for current sprint. Owner has committed to working on it now.
Activity
cpegeric commentedon Mar 6, 2025
cannot reproduce any more. closed.
cpegeric commentedon Mar 20, 2025
you can test the repo with commit 9c15844
ouyuanning commentedon Mar 21, 2025
从日志来看,大概的原因是:
1、有个SQL需要调用内部执行器执行一条子SQL
2、子SQL在开始lock meta table的时候,发现schema change,于是报错。但是这个报错没有引起retry,而是往上抛出了,
初步怀疑是这个地方,内部执行器和普通执行路径有差异:
cpegeric commentedon Apr 23, 2025
To reproduce the bug,
you can test the repo with commit 9c15844
create table ivftable (id bigint primary key auto_increment, embed vecf64(3072));
load 1 million vector with dimension 3072
create index idx using ivfflat on tbl(embed) lists=1000 op_type 'vector_l2_ops';
4 remaining items
XuPeng-SH commentedon Jul 23, 2025
assigned to @iamlinjunhong