You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by jo...@apache.org on 2022/12/02 18:02:05 UTC

[sling-site] branch SLING-11710-mention-cluster-safety-for-repoinit created (now c58acf4da)

This is an automated email from the ASF dual-hosted git repository.

joerghoh pushed a change to branch SLING-11710-mention-cluster-safety-for-repoinit
in repository https://gitbox.apache.org/repos/asf/sling-site.git


      at c58acf4da SLING-11710 repoinit is now cluster-safe

This branch includes the following new commits:

     new c58acf4da SLING-11710 repoinit is now cluster-safe

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[sling-site] 01/01: SLING-11710 repoinit is now cluster-safe

Posted by jo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

joerghoh pushed a commit to branch SLING-11710-mention-cluster-safety-for-repoinit
in repository https://gitbox.apache.org/repos/asf/sling-site.git

commit c58acf4daaa985022b43231cfc958458943a9bde
Author: Joerg Hoh <jo...@apache.org>
AuthorDate: Fri Dec 2 19:01:40 2022 +0100

    SLING-11710 repoinit is now cluster-safe
---
 .../content/documentation/bundles/repository-initialization.md     | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/main/jbake/content/documentation/bundles/repository-initialization.md b/src/main/jbake/content/documentation/bundles/repository-initialization.md
index c4c1ad6f8..4b7dbef19 100644
--- a/src/main/jbake/content/documentation/bundles/repository-initialization.md
+++ b/src/main/jbake/content/documentation/bundles/repository-initialization.md
@@ -4,12 +4,9 @@ status=published
 tags=repoinit,jcr,repository
 ~~~~~~
 
-The `SlingRepositoryInitializer` mechanism allows for running code before the `SlingRepository` service is registered.
+The `SlingRepositoryInitializer` mechanism (short: repoinit) allows for running code before the `SlingRepository` service is registered. This is useful for initialization and content migration purposes.
 
-This is useful for initialization and content migration purposes.
-
-Please be aware of potential clustering and coordination issues when using this mechanism, if your environment lets several Sling instances access
-the same content repository you'll need to implement a synchronization mechanism for such operations.
+Starting with version 1.1.40 of the bundle `org.apache.sling.jcr.repoinit` repoinit scripts are safely executed also in environments with a shared repository; this is implemented by a retry-mechanism with random delays.
 
 ## SlingRepositoryInitializer
 The `SlingRepositoryInitializer` is a very simple service interface, available from version 2.4.0 of the `org.apache.sling.jcr.api` and `org.apache.sling.jcr.base` bundles.