jpountz commented on issue #12901:
URL: https://github.com/apache/lucene/issues/12901#issuecomment-1849073645

   IMO one thing to improve here is that we changed file formats for the MSB 
vlong optimization by bumping the file format version number, changing the 
writer to write the new version and adding version checks to the reader. But we 
sometimes also change file formats by forking the code, like we did with 
`Lucene90PostingsFormat` -> `Lucene99PostingsFormat`. A benefit of the latter 
approach is that we keep existing tests in place, specifically 
`BasePostingsFormatTestCase` which has pretty good coverage, probably more than 
what `TestBackwardsCompatibility` will ever be able to check? We should look 
into more systematically forking the code when we do a file format change, or 
figuring out other ways to keep testing prior formats with version bumps, e.g. 
by retaining version checks on the write side and making sure there is a 
separate `BasePostingsFormatTestCase` impl for every version number?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to