manticoresoftware / manticoresearch

Easy to use open source fast database for search | Good alternative to Elasticsearch now | Drop-in replacement for E in the ELK soon
https://manticoresearch.com
GNU General Public License v3.0
9.08k stars 509 forks source link

Rebuilding SI for JSON attribute after update crashes #2705

Closed glookka closed 3 weeks ago

glookka commented 3 weeks ago

Bug Description:

Daemon crashes when trying to rebuild secondary indexes over a json attribute after that json attribute was updated with a value longer than the original (i.e. caused full json update that was placed at the end of .spb file).

update t set j = '["longer_than_original"]' where id=1;
alter table t rebuild secondary;

Manticore Search Version:

6.3.1

Operating System Version:

Any

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.

- [x] Implementation completed - [x] Tests developed - [x] Documentation updated - [x] Documentation reviewed - [x] [Changelog](https://docs.google.com/spreadsheets/d/1mz_3dRWKs86FjRF7EIZUziUDK_2Hvhd97G0pLpxo05s/edit?pli=1&gid=1102439133) updated