mayya-sharipova opened a new pull request, #15616: URL: https://github.com/apache/lucene/pull/15616
The compoundFormat() method was creating a new Lucene50RWCompoundFormat instance on every call. This caused configuration changes made via setShouldUseCompoundFile() to be lost, as subsequent calls would return a different instance with default settings. This fix caches the CompoundFormat instance as a field, following the pattern used by the parent class Lucene84Codec. Closes #15615 -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
