cuba-platform / fts

Full-Text Search Addon
https://www.cuba-platform.com/
Apache License 2.0
4 stars 1 forks source link

Show Lucene index format version in jmx #52

Closed alexbudarov closed 5 years ago

alexbudarov commented 5 years ago

Environment

Description of the bug or enhancement

Let's imagine I'm upgrading my system from CUBA 6.8 to 6.10. I see that there is a Lucene version increase, so I probably need to upgrade my indices.

But how do I determine if the index has been already upgraded or not? For example if I check actions of other employees who performed the update of the system. Given the fact that Lucene 7.2.1 works without errors with indices created by 6.6.0. Is the upgrade necessary after all, was the format changed or not?

So it would be nice to see in JMX "latest index version" and "version of indices on disk".

haulmont-git commented 5 years ago

Git changesets by subbotin:

f7924842 in master - Show Lucene index format version in jmx #52

haulmont-git commented 5 years ago

Git changesets by subbotin:

5d2ef88a in release_6_10 - Show Lucene index format version in jmx #52

andreysubbotin commented 5 years ago

FtsManagerMbean.getIndexFormatVersion returns current index format version FtsManagerMbean.getLatestIndexFormatVersion returns last index format version supported by lucene