Skip to main content
kunalm
Level 2
Oct 16, 2015 2:28 AM UTC
Solved

AEM 6.0 - Manually setting repository lock

Hi,

I read here - http://docs.adobe.com/docs/en/aem/6-0/administer/operations/backup-and-restore.html#How AEM Online Backup Works how the online backup process in its 4th iteration, locks the repository. Any write operations to the repository while it is locked are not lost or result in errors, but are simply paused till a time when the repository lock is released.

I was wondering if there is any way this repository locking and unlocking mechanism can be simulated via code.

-kunal

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

3 replies

kunalm
kunalmAuthor
Level 2
Oct 16, 2015 2:28 AM UTC

Thanks :)

Translate
joerghoh
Adobe Employee
Adobe Employee
Oct 16, 2015 2:28 AM UTC

Hi,

The API Scott was referring to is the JCR Locking API. In the online backup case of CRX 2.x the mentioned locking is a totally different thing. While on JCR level you lock nodes to prevent them from being modified, the repository lock locks the complete repository so a consistent state on disk can be reached which is used to backup the data on disk. So this works on a different level, and it isn't part of any public API, but a CRX 2.x (to be more specific: TarPM) internal implementation which is not exposed.

Therefor you cannot use it directly via code. But it is exposed by JMX (have a lock at the JMX console), so you can invoke it indirectly using JMX.

Jörg

Translate
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:28 AM UTC