Skip to content

Unstable fuzzy results with default layouts after disk chunk flush #489

Open
@sanikolaev

Description

@sanikolaev

Bug Description:

The same select returns an empty result after flush ramchunk.

Example:

mysql -P9306 -h0 -v -e "drop table if exists t; create table t(name text) min_infix_len='2' diskchunk_flush_write_timeout = '9999'; insert into t values(1, 'LIMITED LIABILIYT COMPANY TVK'); insert into t values(2, 'LIPITED LIABILITY COMPANY ABCDEF'); insert into t values(3, 'LIXITED LIABILITY COMPANY XXXXXX'); select * from t where match('LIMITED LIABILITY COMPANY TVK') option fuzzy=1; flush ramchunk t; select * from t where match('LIMITED LIABILITY COMPANY TVK') option fuzzy=1;"
--------------
drop table if exists t
--------------

--------------
create table t(name text) min_infix_len='2' diskchunk_flush_write_timeout = '9999'
--------------

--------------
insert into t values(1, 'LIMITED LIABILIYT COMPANY TVK')
--------------

--------------
insert into t values(2, 'LIPITED LIABILITY COMPANY ABCDEF')
--------------

--------------
insert into t values(3, 'LIXITED LIABILITY COMPANY XXXXXX')
--------------

--------------
select * from t where match('LIMITED LIABILITY COMPANY TVK') option fuzzy=1
--------------

+------+-------------------------------+
| id   | name                          |
+------+-------------------------------+
|    1 | LIMITED LIABILIYT COMPANY TVK |
+------+-------------------------------+
--------------
flush ramchunk t
--------------

--------------
select * from t where match('LIMITED LIABILITY COMPANY TVK') option fuzzy=1
--------------

Expected: second select finds the same result as before flushing the disk chunk.

Notes:

  • adding ,layouts='us,ru' or just ,layouts='' helps

Manticore Search Version:

Manticore 7.0.1 eaca877f1@25021401 dev (columnar 4.0.1 9dbdc6c@25020317) (secondary 4.0.1 9dbdc6c@25020317) (knn 4.0.1 9dbdc6c@25020317)

Operating System Version:

Ubuntu Jammy (dev2)

Have you tried the latest development version?

Yes

Internal Checklist:

To be completed by the assignee. Check off tasks that have been completed or are not applicable.

  • Implementation completed
  • Tests developed
  • Documentation updated
  • Documentation reviewed
  • Changelog updated

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions