oracle / opengrok

OpenGrok is a fast and usable source code search and cross reference engine, written in Java
http://oracle.github.io/opengrok/
Other
4.32k stars 745 forks source link

index (format) should be versioned for easier updates / problem detection when index format(or lucene version) changes (Bugzilla #4081) #594

Open vladak opened 11 years ago

vladak commented 11 years ago

status NEW severity major in component indexer for --- Reported in version unspecified on platform ANY/Generic Assigned to: Trond Norbye

On 2008-10-20 02:21:17 +0000, Lubos Kosco wrote:

(11:17:04) Knuth Anders Hatlen: perhaps we should have an index format version and throw a more meaningful exception on startup: "Index is stored in an old format. Please recreate it from scratch." (11:17:32) Taz: alas I think we have something like that already (11:17:38) Taz: doesn't lucene store this somewhere ? (11:18:10) Taz: lucene version however might be different from version of what we store in it (11:19:00) Taz: I will file a bug on this, hmm ? (11:19:13) Knuth Anders Hatlen: Please do so! (11:19:57) Knuth Anders Hatlen: and yes, I think the Lucene index version is another issue (which lucence hopefully already handles for us)

On 2011-01-05 16:55:30 +0000, Lubos Kosco wrote:

so this bug is basically mainly about version of xrefs and historycache, if I get it correctly ...

tulinkry commented 5 years ago

I saw some kind of similar message in the indexer, isn’t this already implemented?

vladak commented 5 years ago

There is IndexVersion class however it is not used automatically.