Hi, On Thu, Feb 13, 2020 at 8:47 PM Carlos Munoz <camu...@redhat.com> wrote: > ...Is there a reason why the Jcr repository could be restarting? And what > class could we start looking into to debug if this is the case?...
It's not uncommon to see extra restarts of OSGi components at startup, for various reasons. The simplest way to detect and log multiple repository startups might be to implement a SlingRepositoryInitializer service [1] that's called at every startup, or use the logs of an existing one like the JCR RepositoryInitializer [2] if that has anything to process in your system. -Bertrand [1] https://sling.apache.org/documentation/bundles/repository-initialization.html#slingrepositoryinitializer [2] https://github.com/apache/sling-org-apache-sling-jcr-repoinit/blob/41dfe606f99ca71baee8d9054d3ec6e9b896b12e/src/main/java/org/apache/sling/jcr/repoinit/impl/RepositoryInitializer.java#L98