Hey Sling Team,

As Robert mentioned previously[1] using the JCR Content Loader with a
Composite NodeStore is challenging as it keeps track of the status of the
bundles underneath the /var directory.

One of the practical challenges I've also seen with a Composite Repository
is that you actually want the bundle content to re-install when the
Composite Repository loads. For example, if you want a single bundle to
populate the entire repository you may want it to load content under /apps
during seeding and /conf during runtime.

My proposal would be to add a new PathEntry directive, "skipRunmode" which
would skip the installing of a content entry when the Sling instance is
running with the specified runmode. If not specified the content would
still be loaded so this would be backward compatible.

I've created a ticket[2] and have opened a Pull Request with my recommended
changes[3].

Does anyone see any issues with this approach? Does anyone see value in
supporting this at the bundle level vs path level? Any other ideas?

Regards,
Dan

[1] - https://markmail.org/message/xhirmjeyi6mlv635
[2] - https://issues.apache.org/jira/browse/SLING-9841
[3] -
https://github.com/apache/sling-org-apache-sling-jcr-contentloader/pull/3

Reply via email to