kartg opened a new pull request, #12229: URL: https://github.com/apache/lucene/pull/12229
### Description The purpose of this change is to change the access modifier for the "expert" variant of the `readLatestCommit` API from package-private to public. This change also includes a unit test for the new public API. As per the contribution guidelines, `./gradlew tidy` was run and `./gradlew check` passes. In https://github.com/apache/lucene-solr/pull/2212, a variant of the `readLatestCommit` API was added that allowed read-only access to older Lucene indices. However, the only public entrypoints to the feature relied on an `IndexCommit`. [OpenSearch](https://github.com/opensearch-project/OpenSearch) currently has an experimental feature to enable read-only, searchable access to [snapshots](https://opensearch.org/docs/latest/tuning-your-cluster/availability-and-recovery/snapshots/searchable_snapshot/), and I'd like to leverage Lucene's "expert" API to enable access to older snapshots. However, the `Engine` implementations in OpenSearch track `SegmentInfos` objects rather than `IndexCommit` so the experimental implementation currently [uses a workaround](https://github.com/opensearch-project/OpenSearch/issues/7084). Removing the workaround would help us move this feature closer to GA. <!-- If this is your first contribution to Lucene, please make sure you have reviewed the contribution guide. https://github.com/apache/lucene/blob/main/CONTRIBUTING.md --> -- 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