tihom88 opened a new pull request, #3271: URL: https://github.com/apache/jackrabbit-oak/pull/3271
When `LuceneIndexProviderService` deactivates, `deactivate()` previously unregistered services in registration order, so the `QueryIndexProvider` (registered first) was removed before the `IndexEditorProvider` (registered last). A repository that depends only on the `IndexEditorProvider` (for example via a mandatory static reference, as in SlingRepositoryManager) stays up while the query provider is missing, causing concurrent queries to traverse without an index. This change unregisters `regs` and `oakRegs` in reverse (LIFO) order, ensuring the `IndexEditorProvider` is removed first so repository shutdown is initiated before the `QueryIndexProvider` is deregistered. Controlled by feature toggle `FT_OAK-12469` (enabled by default). ### Tests: - `LuceneIndexProviderServiceUnregisterOrderTest`: asserts via OSGi `ServiceListener` that `QueryIndexProvider` remains registered while `IndexEditorProvider` is `UNREGISTERING`, and verifies that setting `FT_OAK-12469` to false restores the previous behavior. - Full `oak-lucene` test suite: 1291 tests passing, 0 failures. - End-to-end verification on local AEM: verified 0 traversals across 20 test iterations (warm loop + cold starts). -- 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]
