nck-2 / test-rep

0 stars 0 forks source link

Changing 'index_field_lengths' on existing rt index sometimes leads to crash #1296

Closed githubmanticore closed 1 year ago

githubmanticore commented 1 year ago

The problem is that schema is embedded into index, and changing it in config causes warning. However changing index_field_lengths also implies changing schema, but does not checked the same way.

So, if you define rt index without this option, then insert couple of docs there, then shut down the daemon, edit the config and add index_field_lengths = 1 there and restart the daemon, some queries which touches schema (like 'describe', or select with the column of len field) will cause daemon to crash.

Since situation is quite specific and seldom, I set 'low priority' to it.