sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertrand Delacretaz <bdelacre...@apache.org>
Subject Re: Error migrating to latest version of the bundles - Can neither derive user name nor principal names (was: Slow queries and unexpected results)
Date Tue, 04 Feb 2020 09:24:11 GMT
Hi,

On Sun, Feb 2, 2020 at 4:50 AM Carlos Munoz <camunoz@redhat.com> wrote:
> ...do configurations from the
> repoinit files get installed in a specific order with relation to the
> artifacts?...

The repoinit configs are applied by a single
SlingRepositoryInitializer [1] service which is implemented by
org.apache.sling.jcr.repoinit.impl.RepositoryInitializer [2].

The execution order of the SlingRepositoryInitializer services is
based on their service rankings [4] and the RepositoryInitializer
processes its configurations in the order in which they are provided
by the OSGi framework, sequentially.

All this happens before the SlingRepository service is made available [3]

The logs should help understand what's going on but IIRC it all
happens in a single thread.

-Bertrand

[1] https://sling.apache.org/documentation/bundles/repository-initialization.html
[2] https://github.com/apache/sling-org-apache-sling-jcr-repoinit/blob/master/src/main/java/org/apache/sling/jcr/repoinit/impl/RepositoryInitializer.java
[3] https://github.com/apache/sling-org-apache-sling-jcr-base/blob/e8fe5e004b5af1802bb2a76dbbb583a437f848ee/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepositoryManager.java#L511
[4] https://github.com/apache/sling-org-apache-sling-jcr-base/blob/e8fe5e004b5af1802bb2a76dbbb583a437f848ee/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepositoryManager.java#L581

Mime
View raw message