sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Munoz <camu...@redhat.com>
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 12:06:15 GMT
Thanks Bertrand! I will continue my fact finding mission here :)

Regards,

Carlos

On Tue, Feb 4, 2020 at 4:31 AM Bertrand Delacretaz <bdelacretaz@apache.org>
wrote:

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message