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/05 07:33:47 UTC
[sling-site] branch master updated: SLING-11710 repoinit is now cluster-safe (#102)
This is an automated email from the ASF dual-hosted git repository.
joerghoh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-site.git
The following commit(s) were added to refs/heads/master by this push:
new b33b196c3 SLING-11710 repoinit is now cluster-safe (#102)
b33b196c3 is described below
commit b33b196c3407a13d367dd8ea849702e03695eb2b
Author: Jörg Hoh <jo...@users.noreply.github.com>
AuthorDate: Mon Dec 5 08:33:42 2022 +0100
SLING-11710 repoinit is now cluster-safe (#102)
* 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..7a4e44d53 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 randomized 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.